Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to capture audio with ffmpeg in .raw format. Here is what I do to capture in .mp3 format :

ffmpeg -f dshow -t 10 -i audio="virtual-audio-capturer" -y "sound.mp3"

note that I don't want to capture in .mp3 then convert in .raw

share|improve this question
Please include the complete ffmpeg console output from your command. – LordNeckbeard Mar 25 '14 at 18:04
Relevant: – Saaru Lindestøkke Mar 27 '14 at 17:37

Use sound.wav as your output, instead of sound.mp3. Or if you literally mean raw PCM data with no headers, not just uncompressed, then try

ffmpeg -f dshow -t 10 -i audio="virtual-audio-capturer" -f s16le -y "sound.pcm"

Play it back with

ffplay -channels 2 -f s16le -i sound.pcm

Unless you really need headerless, I'd suggest WAV files for ease of use. Sample format, rate, and number of channels stored in the file is a Good Thing.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.