From 957d19faf3dd164862bb25831a34d8956d273b22 Mon Sep 17 00:00:00 2001 From: Jaex Date: Thu, 2 Nov 2017 11:02:39 +0300 Subject: [PATCH] Added -movflags +faststart to x264 encoder --- ShareX.ScreenCaptureLib/Screencast/ScreencastOptions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ShareX.ScreenCaptureLib/Screencast/ScreencastOptions.cs b/ShareX.ScreenCaptureLib/Screencast/ScreencastOptions.cs index 6b29f5082..4bdeb6b10 100644 --- a/ShareX.ScreenCaptureLib/Screencast/ScreencastOptions.cs +++ b/ShareX.ScreenCaptureLib/Screencast/ScreencastOptions.cs @@ -165,6 +165,7 @@ public string GetFFmpegArgs(bool isCustom = false) args.AppendFormat("-tune {0} ", FFmpegTune.zerolatency); 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("-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.libvpx: // https://trac.ffmpeg.org/wiki/Encode/VP8 args.AppendFormat("-deadline {0} ", "realtime");