mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-05 20:54:31 +13:00
Added -movflags +faststart to x264 encoder
This commit is contained in:
parent
306485245c
commit
957d19faf3
1 changed files with 1 additions and 0 deletions
|
@ -165,6 +165,7 @@ public string GetFFmpegArgs(bool isCustom = false)
|
||||||
args.AppendFormat("-tune {0} ", FFmpegTune.zerolatency);
|
args.AppendFormat("-tune {0} ", FFmpegTune.zerolatency);
|
||||||
args.AppendFormat("-crf {0} ", FFmpeg.x264_CRF);
|
args.AppendFormat("-crf {0} ", FFmpeg.x264_CRF);
|
||||||
args.AppendFormat("-pix_fmt {0} ", "yuv420p"); // -pix_fmt yuv420p required otherwise can't stream in Chrome
|
args.AppendFormat("-pix_fmt {0} ", "yuv420p"); // -pix_fmt yuv420p required otherwise can't stream in Chrome
|
||||||
|
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;
|
break;
|
||||||
case FFmpegVideoCodec.libvpx: // https://trac.ffmpeg.org/wiki/Encode/VP8
|
case FFmpegVideoCodec.libvpx: // https://trac.ffmpeg.org/wiki/Encode/VP8
|
||||||
args.AppendFormat("-deadline {0} ", "realtime");
|
args.AppendFormat("-deadline {0} ", "realtime");
|
||||||
|
|
Loading…
Reference in a new issue