Related products: Video Capture SDK .Net

Audio capture to MP3 in 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 = "c:\\123.mp3";

4. Start capture

VideoCapture1.Start();

VisioForge © 2006-2019

  • GitHub-Mark-64px
  • Twitter Социальные Иконка
  • VisioForge Facebook page
  • YouTube channel