From ce7816a968a4b572e8aaf6c88b65712479d331b4 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Mon, 25 May 2020 21:45:59 -0400 Subject: [PATCH] more aggressive video transdoing Have noticed the defaults aren't aggressive enough to stream smoothly (yet). Downgrade max rate to 5500K, higher crf = smaller file size for now. --- lbry/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lbry/conf.py b/lbry/conf.py index 6945e537a..e9b293933 100644 --- a/lbry/conf.py +++ b/lbry/conf.py @@ -478,12 +478,12 @@ class TranscodeConfig(BaseConfig): '', previous_names=['ffmpeg_folder']) video_encoder = String('FFmpeg codec and parameters for the video encoding. ' 'Example: libaom-av1 -crf 25 -b:v 0 -strict experimental', - 'libx264 -crf 21 -preset faster -pix_fmt yuv420p') + 'libx264 -crf 24 -preset faster -pix_fmt yuv420p') video_bitrate_maximum = Integer('Maximum bits per second allowed for video streams (0 to disable).', 8400000) video_scaler = String('FFmpeg scaling parameters for reducing bitrate. ' 'Example: -vf "scale=-2:720,fps=24" -maxrate 5M -bufsize 3M', r'-vf "scale=if(gte(iw\,ih)\,min(1920\,iw)\,-2):if(lt(iw\,ih)\,min(1920\,ih)\,-2)" ' - r'-maxrate 8400K -bufsize 5000K') + r'-maxrate 5500K -bufsize 5000K') audio_encoder = String('FFmpeg codec and parameters for the audio encoding. ' 'Example: libopus -b:a 128k', 'aac -b:a 160k')