Skip to content

Commit

Permalink
v1.6.7.1-alpha
Browse files Browse the repository at this point in the history
Added Cut End Time Auto Duration
  • Loading branch information
MattMcManis committed Apr 1, 2019
1 parent ae4617a commit 6da0318
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 15 deletions.
6 changes: 3 additions & 3 deletions source/Axiom/Axiom/FFmpeg/FFprobe.cs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ public static void VideoEntryType(ViewModel vm)


/// <summary>
/// FFprobe Audio Entry Type Containers (Method)
/// FFprobe Audio Entry Type Containers (Method)
/// </summary>
// Used for Auto Quality to pass Bit Rate Entry Type to FFprobe
public static void AudioEntryType(ViewModel vm)
Expand Down Expand Up @@ -358,7 +358,7 @@ public static void AudioEntryType(ViewModel vm)


/// <summary>
/// FFprobe Cut Duration
/// FFprobe Cut Duration
/// </summary>
public static String CutDuration(string input_Text,
bool batch_IsChecked
Expand Down Expand Up @@ -386,7 +386,7 @@ bool batch_IsChecked


/// <summary>
/// FFprobe Input File Info Parse (Method)
/// FFprobe Input File Info Parse (Method)
/// </summary>
public static String InputFileInfo(string input_Text,
bool batch_IsChecked,
Expand Down
38 changes: 28 additions & 10 deletions source/Axiom/Axiom/Format/Format.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ string frameStart_Text
if (string.IsNullOrEmpty(frameStart_Text))
{
// Start
trimStart = "-ss " + cutStart_Text_Hours.PadLeft(2, '0') + ":" +
cutStart_Text_Minutes.PadLeft(2, '0') + ":" +
cutStart_Text_Seconds.PadLeft(2, '0') + "." +
cutStart_Text_Milliseconds.PadLeft(3, '0');
trimStart = cutStart_Text_Hours.PadLeft(2, '0') + ":" +
cutStart_Text_Minutes.PadLeft(2, '0') + ":" +
cutStart_Text_Seconds.PadLeft(2, '0') + "." +
cutStart_Text_Milliseconds.PadLeft(3, '0');
}

// -------------------------
Expand All @@ -363,8 +363,11 @@ string frameStart_Text
// use FramesToDecimal Method (Override Time)
else if (!string.IsNullOrEmpty(frameStart_Text))
{
trimStart = "-ss " + Video.FramesToDecimal(frameStart_Text);
trimStart = Video.FramesToDecimal(frameStart_Text);
}


trimStart = "-ss " + trimStart;
}

// -------------------------
Expand Down Expand Up @@ -412,10 +415,22 @@ string frameEnd_Text
if (string.IsNullOrEmpty(frameEnd_Text))
{
// End
trimEnd = "-to " + cutEnd_Text_Hours.PadLeft(2, '0') + ":" +
cutEnd_Text_Minutes.PadLeft(2, '0') + ":" +
cutEnd_Text_Seconds.PadLeft(2, '0') + "." +
cutEnd_Text_Milliseconds.PadLeft(3, '0');
trimEnd = cutEnd_Text_Hours.PadLeft(2, '0') + ":" +
cutEnd_Text_Minutes.PadLeft(2, '0') + ":" +
cutEnd_Text_Seconds.PadLeft(2, '0') + "." +
cutEnd_Text_Milliseconds.PadLeft(3, '0');

// If End Time is Empty, Default to Full Duration
// Input Null Check
if (!string.IsNullOrEmpty(input_Text))
{
if (trimEnd == "00:00:00.000" ||
string.IsNullOrEmpty(trimEnd))
{
trimEnd = FFprobe.CutDuration(input_Text, batch_IsChecked);
}
}

}

// -------------------------
Expand All @@ -425,8 +440,11 @@ string frameEnd_Text
// use FramesToDecimal Method (Override Time)
else if (!string.IsNullOrEmpty(frameEnd_Text))
{
trimEnd = "-to " + Video.FramesToDecimal(frameEnd_Text);
trimEnd = /*"-to " + */Video.FramesToDecimal(frameEnd_Text);
}


trimEnd = "-to " + trimEnd;
}
}

Expand Down
4 changes: 2 additions & 2 deletions source/Axiom/Axiom/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.6.7.0")]
[assembly: AssemblyFileVersion("1.6.7.0")]
[assembly: AssemblyVersion("1.6.7.1")]
[assembly: AssemblyFileVersion("1.6.7.1")]

0 comments on commit 6da0318

Please sign in to comment.