Skip to content

Commit

Permalink
Merge pull request #13 from prateekmedia/patch-1
Browse files Browse the repository at this point in the history
[FIX] Params
  • Loading branch information
cfsmp3 authored Dec 25, 2023
2 parents b41bc0a + c546713 commit 69c4872
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CCExtractorTester/Analyzers/Processor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public RunData CallCCExtractor(TestEntry test, string storeName)
Test = test;

string programToRun = Config.CCExctractorLocation;
string commandToPass = String.Format("{0} --no_progress_bar", test.Command);
string commandToPass = String.Format("{0} --no-progress-bar", test.Command);
string inputFile = Path.Combine(Config.SampleFolder, test.InputFile);
string firstOutputFile = Path.Combine(Config.TemporaryFolder, test.CompareFiles[0].ExpectedFile);

Expand Down Expand Up @@ -90,7 +90,7 @@ public RunData CallCCExtractor(TestEntry test, string storeName)
break;
case OutputType.Tcp:
// We'll need to set up another instance to receive the captions, but we'll do this later
commandToPass = String.Format("-sendto 127.0.0.1:{0} --no_progress_bar", Config.TCPPort);
commandToPass = String.Format("--sendto 127.0.0.1:{0} --no-progress-bar", Config.TCPPort);
break;
case OutputType.Cea708:
// use -o for base determination & 608 contents
Expand Down Expand Up @@ -125,7 +125,7 @@ public RunData CallCCExtractor(TestEntry test, string storeName)
break;
case InputType.Udp:
// Set up ffmpeg to pass udp to ccextractor later, add -udp to CCExtractor
commandToPass += String.Format(" -udp {0}", Config.UDPPort);
commandToPass += String.Format(" --udp {0}", Config.UDPPort);
break;
default:
break;
Expand Down Expand Up @@ -174,7 +174,7 @@ public RunData CallCCExtractor(TestEntry test, string storeName)
// Set up another CCExtractor instance to receive raw caption data
output.StartInfo = new ProcessStartInfo(Config.CCExctractorLocation)
{
Arguments = String.Format(@"{0} -tcp {1} -o ""{2}""", test.Command, Config.TCPPort, firstOutputFile),
Arguments = String.Format(@"{0} --tcp {1} -o ""{2}""", test.Command, Config.TCPPort, firstOutputFile),
UseShellExecute = false,
RedirectStandardError = true,
RedirectStandardOutput = true,
Expand Down Expand Up @@ -337,4 +337,4 @@ void processError(object sender, DataReceivedEventArgs e)
}
}
}
}
}

0 comments on commit 69c4872

Please sign in to comment.