-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from bartekmotyl/release-0.11
Release 0.11
- Loading branch information
Showing
15 changed files
with
358 additions
and
129 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using FFmpeg.NET; | ||
using FFmpeg.NET.Enums; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace SimpleVideoCutter.FFmpegNET | ||
{ | ||
internal class FFmpegArgumentBuilder | ||
{ | ||
public static string BuildArgumentsCutOperation(string inputFileFullPath, string outputFileFullPath, | ||
TimeSpan seek, TimeSpan duration, string customArguments) | ||
{ | ||
var commandBuilder = new StringBuilder(); | ||
|
||
commandBuilder.AppendFormat(CultureInfo.InvariantCulture, " -ss {0} ", seek); | ||
commandBuilder.AppendFormat(" -t {0} ", duration); | ||
commandBuilder.AppendFormat(" -i \"{0}\" ", inputFileFullPath); | ||
commandBuilder.AppendFormat(" {0}", customArguments); | ||
|
||
return commandBuilder.AppendFormat(" \"{0}\" ", outputFileFullPath).ToString(); | ||
} | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.