From 57fd3e9fc0f35cda59bdf7bb774ef8aa43fb7b1e Mon Sep 17 00:00:00 2001 From: Fredrik Vedvik Date: Fri, 20 Oct 2023 14:47:14 +0200 Subject: [PATCH] use CRF 20 instead of bitrate --- services/transcode/video.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/services/transcode/video.go b/services/transcode/video.go index f601a7c1..c369b8bf 100644 --- a/services/transcode/video.go +++ b/services/transcode/video.go @@ -54,15 +54,16 @@ func VideoH264(input common.VideoInput, cb ffmpeg.ProgressCallback) (*common.Vid } params = append(params, - "-b:v", input.Bitrate, - "-maxrate", input.Bitrate, + "-crf", "20", + //"-b:v", input.Bitrate, + //"-maxrate", input.Bitrate, ) - if input.BufferSize != "" { - params = append(params, - "-bufsize", input.BufferSize, - ) - } + //if input.BufferSize != "" { + // params = append(params, + // "-bufsize", input.BufferSize, + // ) + //} var filterComplex string