Videos: Fix incorrect NVIDIA hardware transcoding parameters #2442 #2449

This commit is contained in:
abgd1234 2022-06-19 14:32:48 +01:00 committed by GitHub
parent 4036b21a1f
commit 62120cd5e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",