Changed user args placement so directshow filter can work

This commit is contained in:
Jaex 2014-05-12 13:04:14 +03:00
parent 8d1b50d162
commit b0167b0dbc

View file

@ -56,6 +56,11 @@ public string GetFFmpegArgs()
args.AppendFormat("-f gdigrab -framerate {0} -offset_x {1} -offset_y {2} -video_size {3}x{4} -draw_mouse {5} -show_region {6} -i desktop ",
ScreenRecordFPS, CaptureArea.X, CaptureArea.Y, CaptureArea.Width, CaptureArea.Height, DrawCursor ? 1 : 0, 0);
if (!string.IsNullOrEmpty(FFmpeg.UserArgs))
{
args.Append(FFmpeg.UserArgs + " ");
}
args.AppendFormat("-c:v {0} ", FFmpeg.VideoCodec.ToString());
// output FPS
@ -86,11 +91,6 @@ public string GetFFmpegArgs()
args.AppendFormat("-t {0} ", Duration);
}
if (!string.IsNullOrEmpty(FFmpeg.UserArgs))
{
args.Append(FFmpeg.UserArgs + " ");
}
// -y for overwrite file
args.AppendFormat("-y \"{0}\"", Path.ChangeExtension(OutputPath, FFmpeg.Extension));