WMA v1 encoder
WMA (Windows Media Audio)
: A series of audio codecs and their corresponding audio coding formats developed by Microsoft, known for its ability to compress at high ratios with good sound quality.
The WMA encoder is used to encode files in ASF, WMA, and WMV formats.
Use the WMA1EncoderSettings
class to set the parameters.
Block info
Name: WMA1EncoderBlock.
Pin direction | Media type | Pins count |
---|---|---|
Input | F32LE | 1 |
Output | WMA (v1) | 1 |
The sample pipeline
Sample code
var pipeline = new MediaBlocksPipeline();
var filename = "test.mp3";
var fileSource = new UniversalSourceBlock(await UniversalSourceSettings.CreateAsync(new Uri(filename)));
var audioEncoderBlock = new WMA1EncoderBlock(new WMA1EncoderSettings());
pipeline.Connect(fileSource.AudioOutput, audioEncoderBlock.Input);
var sinkBlock = new ASFSinkBlock(new ASFSinkSettings(@"output.wma"));
pipeline.Connect(audioEncoderBlock.Output, sinkBlock.CreateNewInput(MediaBlockPadMediaType.Audio));
await pipeline.StartAsync();
Platforms
Windows, macOS, Linux, Android.