Audio capture to MP3 in Video Capture SDK .Net

Related products
Video Capture SDK .Net

1. Set sample MP3 settings, apply as output format

var mp3Output = new VFMP3Output();

mp3Output.CBR_Bitrate = 128;
mp3Output.VBR_MinBitrate = 128;
mp3Output.VBR_MaxBitrate = 192;
mp3Output.SampleRate = 44100;
mp3Output.ChannelsMode = VFLameChannelsMode.StandardStereo;
mp3Output.VBR_Mode = true;

VideoCapture1.Output_Format = mp3Output;

2. Set audio capture mode

VideoCapture1.Mode = VFVideoCaptureMode.AudioCapture;

3. Set file name

VideoCapture1.Output_Filename = "output.mp3";

4. Start capture (sync or async)

await VideoCapture1.StartAsync();
Please contact support to get help with this tutorial. Visit our GitHub page to get more code samples.
VisioForge © 2006 - 2021