Skip to content

Commit

Permalink
Merge pull request #9 from bartekmotyl/release-0.11
Browse files Browse the repository at this point in the history
Release 0.11
  • Loading branch information
bartekmotyl authored Dec 19, 2019
2 parents e93c579 + b6752b0 commit 00e084c
Show file tree
Hide file tree
Showing 15 changed files with 358 additions and 129 deletions.
14 changes: 14 additions & 0 deletions src/SimpleVideoCutter/AboutBox.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/SimpleVideoCutter/AboutBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,5 +100,10 @@ public string AssemblyCompany
}
}
#endregion

private void linkLabelGithub_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
System.Diagnostics.Process.Start(linkLabelGithub.Text);
}
}
}
28 changes: 28 additions & 0 deletions src/SimpleVideoCutter/FFmpegNET/FFmpegArgumentBuilder.cs
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();
}

}
}
3 changes: 2 additions & 1 deletion src/SimpleVideoCutter/FormSettings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/SimpleVideoCutter/FormSettings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,6 @@
<metadata name="folderBrowserDialog1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>186, 17</value>
</metadata>
<data name="textBoxOutputFilePattern.ToolTip" xml:space="preserve">
<value>Pattern that defines how filenames of created files will be computed.
Static parts are allowed as well as these pseudo-variable
Expand Down
Loading

0 comments on commit 00e084c

Please sign in to comment.