Skip to content

Commit

Permalink
Problem when cutting AVI files #62
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekmotyl committed Jul 31, 2022
1 parent a588659 commit bb38265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SimpleVideoCutter/FFmpegNET/FFmpegArgumentBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static string BuildArgumentsSingleCutOperation(string inputFileFullPath,
commandBuilder.AppendFormat(" -avoid_negative_ts make_zero ");

commandBuilder.AppendFormat(CultureInfo.InvariantCulture, " -to {0:0.000} ", end.TotalSeconds);
commandBuilder.AppendFormat(" -map 0:v -map 0:a ");
commandBuilder.AppendFormat(" -map 0:v -map 0:a? ");
}
else
{
Expand All @@ -52,7 +52,7 @@ public static string BuildArgumentsSingleCutOperation(string inputFileFullPath,
commandBuilder.AppendFormat(" -copyts ");
commandBuilder.AppendFormat(" -avoid_negative_ts make_zero ");
commandBuilder.AppendFormat(CultureInfo.InvariantCulture, " -to {0:0.000} ", end.TotalSeconds);
commandBuilder.AppendFormat(" -map 0:v -map 0:a ");
commandBuilder.AppendFormat(" -map 0:v -map 0:a? ");
}

var cmd = commandBuilder.AppendFormat(" \"{0}\" ", outputFileFullPath).ToString();
Expand Down

0 comments on commit bb38265

Please sign in to comment.