From 62120cd5e26eb1562755b9fa683824c722b607ad Mon Sep 17 00:00:00 2001 From: abgd1234 <84060801+abgd1234@users.noreply.github.com> Date: Sun, 19 Jun 2022 14:32:48 +0100 Subject: [PATCH] Videos: Fix incorrect NVIDIA hardware transcoding parameters #2442 #2449 --- internal/ffmpeg/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ffmpeg/convert.go b/internal/ffmpeg/convert.go index c7f9d9d52..ffb84970d 100644 --- a/internal/ffmpeg/convert.go +++ b/internal/ffmpeg/convert.go @@ -82,7 +82,6 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc // ffmpeg -hide_banner -h encoder=h264_nvenc result = exec.Command( ffmpegBin, - "-r", "30", "-i", fileName, "-pix_fmt", "yuv420p", "-c:v", string(encoder), @@ -94,6 +93,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc "-rc:v", "constqp", "-cq", "0", "-tune", "2", + "-r", "30", "-b:v", bitrate, "-profile:v", "1", "-level:v", "41",