Video: Change FFmpeg params for NVidia hardware transcoding #2613
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
211eb36ead
commit
06744f356c
1 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue