openzim / python-scraperlib

Collection of Python code to re-use across Python-based scrapers
GNU General Public License v3.0
19 stars 16 forks source link

webm video presets: migrate from VP8 to VP9 for smaller ZIMs #170

Closed benoit74 closed 3 months ago

benoit74 commented 3 months ago

Fix #79

WebmLow and WebmHigh presets are migrated to use VP9 instead of VP8.

Presets are also enhanced to maximize video quality all while minimizing final file size. A compromise with encoding duration (which is known to be significantly higher with VP9 compared to VP8) is also taken into account (hence the -speed setting values, 0 is optimal but takes too long for minimal quality improvement given our computing power available)

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (f3d1b07) to head (fd28720).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #170 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 32 32 Lines 1393 1393 Branches 240 240 ========================================= Hits 1393 1393 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

benoit74 commented 3 months ago

Thank you @kevinmcmurtrie for your very valuable help on this very important change! Let's merge and release this!