mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Changed user args placement so directshow filter can work
This commit is contained in:
parent
8d1b50d162
commit
b0167b0dbc
1 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue