fixed #5806: Added faststart to NVENC

This commit is contained in:
Jaex 2021-09-08 16:11:55 +03:00
parent cbd1acfaec
commit 96480288cd

View file

@ -203,6 +203,7 @@ public string GetFFmpegArgs(bool isCustom = false)
args.AppendFormat("-preset {0} ", FFmpeg.NVENC_preset);
args.AppendFormat("-b:v {0}k ", FFmpeg.NVENC_bitrate);
args.AppendFormat("-pix_fmt {0} ", "yuv420p");
args.AppendFormat("-movflags {0} ", "+faststart"); // This will move some information to the beginning of your file and allow the video to begin playing before it is completely downloaded by the viewer
break;
case FFmpegVideoCodec.h264_amf:
case FFmpegVideoCodec.hevc_amf: