Video: Change FFmpeg params for NVidia hardware transcoding #2613

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2022-11-03 16:18:04 +01:00
parent 211eb36ead
commit 06744f356c

View file

@ -99,6 +99,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc
// ffmpeg -hide_banner -h encoder=h264_nvenc
result = exec.Command(
ffmpegBin,
"-hwaccel", "auto",
"-i", fileName,
"-pix_fmt", "yuv420p",
"-c:v", string(encoder),
@ -113,7 +114,7 @@ func AvcConvertCommand(fileName, avcName, ffmpegBin, bitrate string, encoder Avc
"-r", "30",
"-b:v", bitrate,
"-profile:v", "1",
"-level:v", "41",
"-level:v", "auto",
"-coder:v", "1",
"-f", "mp4",
"-y",