Skip to content

Commit

Permalink
Merge branch 'hotfix/incorrect_encoding_width'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsher committed Apr 21, 2017
2 parents 1a408bc + 8cb5fbb commit fe59f40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dvrchive/CommandBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CommandBuilder

public static ProcessStartInfo GenerateEncodingCommand(Show show, Episode episode, Segment segment, int segmentCount)
{
string arguments = "-ss " + segment.start.ToString() + " -i \"" + episode.path + "\" -to " + segment.end.ToString() + " -vcodec libx264 -preset fast -crf 23 -vf " + show.GetDeinterlaceString() + "scale=trunc(oh/a/2)*2:" + show.height + " -acodec ac3 -ac 6 -ab 384k -copyts -start_at_zero \"" + episode.GetTempLocation() + segmentCount + ".mkv\"";
string arguments = "-ss " + segment.start.ToString() + " -i \"" + episode.path + "\" -to " + segment.end.ToString() + " -vcodec libx264 -preset fast -crf 23 -vf " + show.GetDeinterlaceString() + "scale=-2:" + show.height + " -acodec ac3 -ac 6 -ab 384k -copyts -start_at_zero \"" + episode.GetTempLocation() + segmentCount + ".mkv\"";

//Console.WriteLine(arguments);

Expand Down Expand Up @@ -51,7 +51,7 @@ public static ProcessStartInfo GenerateLastCommand(Show show, Episode episode, S

private static ProcessStartInfo GenerateLastCommandWindows(Show show, Episode episode, Segment segment, int segmentCount)
{
string arguments = "-ss " + segment.start.ToString() + " -i \"" + episode.path + "\" -vcodec libx264 -preset fast -crf 23 -vf " + show.GetDeinterlaceString() + "scale=trunc(oh/a/2)*2:" + show.height + " -acodec ac3 -ac 6 -ab 384k -copyts -start_at_zero " + ApplyNonWindowsSpaces(episode.GetTempLocation() + segmentCount + ".mkv");
string arguments = "-ss " + segment.start.ToString() + " -i \"" + episode.path + "\" -vcodec libx264 -preset fast -crf 23 -vf " + show.GetDeinterlaceString() + "scale=-2:" + show.height + " -acodec ac3 -ac 6 -ab 384k -copyts -start_at_zero " + ApplyNonWindowsSpaces(episode.GetTempLocation() + segmentCount + ".mkv");

//Console.WriteLine(arguments);

Expand All @@ -68,7 +68,7 @@ private static ProcessStartInfo GenerateLastCommandWindows(Show show, Episode ep

private static ProcessStartInfo GenerateLastCommandNonWindows(Show show, Episode episode, Segment segment, int segmentCount)
{
string arguments = "-ss " + segment.start.ToString() + " -i " + ApplyNonWindowsSpaces(episode.path) + " -vcodec libx264 -preset fast -crf 23 -vf " + show.GetDeinterlaceString() + "scale=trunc(oh/a/2)*2:" + show.height + " -acodec ac3 -ac 6 -ab 384k -copyts -start_at_zero \"" + episode.GetTempLocation() + segmentCount + ".mkv\"";
string arguments = "-ss " + segment.start.ToString() + " -i " + ApplyNonWindowsSpaces(episode.path) + " -vcodec libx264 -preset fast -crf 23 -vf " + show.GetDeinterlaceString() + "scale=-2:" + show.height + " -acodec ac3 -ac 6 -ab 384k -copyts -start_at_zero \"" + episode.GetTempLocation() + segmentCount + ".mkv\"";

//Console.WriteLine(arguments);

Expand Down

0 comments on commit fe59f40

Please sign in to comment.