Hi,
I'm trying to work out how to use EncoderCMDLN for opus encoding. Here is what I have so far:
// OPUS
EncoderCMDLN opus = new EncoderCMDLN(mixerStream);
opus.EncoderDirectory = Path.Combine(Application.StartupPath, "encoders");
opus.CMDLN_Executable = "opusenc.exe";
opus.CMDLN_DefaultOutputExtension = ".opus";
opus.InputFile = null;
opus.OutputFile = null;
opus.CMDLN_Bitrate = kbps;
if (opus.EncoderExists)
{
encoder = opus;
encoder.UseAsyncQueue = true;
}
else
{
MessageBox.Show(this, "OPUS encoder can not be found or does not exist in " + opus.EncoderDirectory + " ."
+ "\r\n The encoder can be found here: http://www.opus-codec.org/downloads/.");
return;
}
Opus website gives me the following example for the command line execution:
Record and send a live stream to an Icecast HTTP streaming server using oggfwd:
arecord -c 2 -r 48000 -twav - | opusenc --bitrate 96 - - | oggfwd icecast.somewhere.org 8000 password /stream.opus
I'm just not sure how something like that should be setup within EncoderCMDLN. Any help would be appreciated.
Paul