Related products: Video Capture SDK .Net

Audio capture to WAV (PCM/ACM) in Video Capture SDK .Net

1. Get list of available audio codecs

foreach (string codec in VideoCapture1.Audio_Codecs)
{
  cbAudioCodecs.Items.Add(codec);
}

2. Set audio settings, apply output format

var acmOutput = new VFACMOutput();

acmOutput.Channels = 2;
acmOutput.BPS = 16;
acmOutput.SampleRate = 44100;
acmOutput.Name = cbAudioCodecs.Text;

VideoCapture1.Output_Format = acmOutput;

3. Set audio capture mode

VideoCapture1.Mode = VFVideoCaptureMode.AudioCapture;

4. Set file name

VideoCapture1.Output_Filename = "c:\\123.wav";

5. Start capture

VideoCapture1.Start();

VisioForge © 2006-2019

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