From f1bbfca02b7edb57a5ab23b2d4c75baae08409fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 13 Mar 2019 17:11:52 +0100 Subject: [PATCH] Changed CRF for create_video tasks from 23 to 20 We need less compression for the Spring edit. --- flamenco_worker/commands.py | 2 +- tests/test_commands_create_video.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flamenco_worker/commands.py b/flamenco_worker/commands.py index ba46dfc..afcd84c 100644 --- a/flamenco_worker/commands.py +++ b/flamenco_worker/commands.py @@ -1361,7 +1361,7 @@ class CreateVideoCommand(AbstractFFmpegCommand): pix_fmt = 'yuv420p' # Select some settings that are useful for scrubbing through the video. - constant_rate_factor = 23 + constant_rate_factor = 20 keyframe_interval = 18 # GOP size max_b_frames: typing.Optional[int] = 0 diff --git a/tests/test_commands_create_video.py b/tests/test_commands_create_video.py index 72b193d..efb15fb 100644 --- a/tests/test_commands_create_video.py +++ b/tests/test_commands_create_video.py @@ -59,7 +59,7 @@ class CreateVideoTest(AbstractCommandTest): '-f', 'concat', '-i', Path(self.settings['input_files']).absolute().with_name('ffmpeg-input.txt').as_posix(), '-c:v', 'h264', - '-crf', '23', + '-crf', '20', '-g', '18', '-vf', 'pad=ceil(iw/2)*2:ceil(ih/2)*2', '-pix_fmt', 'yuv420p', @@ -81,7 +81,7 @@ class CreateVideoTest(AbstractCommandTest): '-pattern_type', 'glob', '-i', '/tmp/*.png', '-c:v', 'h264', - '-crf', '23', + '-crf', '20', '-g', '18', '-vf', 'pad=ceil(iw/2)*2:ceil(ih/2)*2', '-pix_fmt', 'yuv420p',