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

<pre><code>ffmpeg -f dshow -t 10 -i audio="virtual-audio-capturer" -f s16le -y "sound.pcm"
</code></pre>

<p>Play it back with</p>

<pre><code>ffplay -channels 2 -f s16le -i sound.pcm
</code></pre>

<p>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.</p>

CC BY-SA 3.0
2015-02-25T04:50:05.677Z
2015-02-25T06:26:10.173Z
2015-02-25T06:26:10.173Z
Peter Cordes
<p>I would like to capture audio with ffmpeg in .raw format. Here is what I do to capture in .mp3 format :</p>

<pre><code>ffmpeg -f dshow -t 10 -i audio="virtual-audio-capturer" -y "sound.mp3"
</code></pre>

<p>note that I don't want to capture in .mp3 then convert in .raw</p>

CC BY-SA 3.0
2014-03-25T18:04:15.230Z
Please include the complete `ffmpeg` console output from your command.
llogan
CC BY-SA 3.0
2014-03-27T17:37:22.167Z
Relevant: http://stackoverflow.com/q/4854513/1256347
Saaru Lindestøkke
<ffmpeg>
ffmpeg capture audio in raw format
AmirH
# ffmpeg capture audio in raw format

(Asked by: username_0 on 2014-03-25)

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

**Tags:** ffmpeg

> **Comments:**
> **username_1**: Please include the complete `ffmpeg` console output from your command.  
> **username_2**: Relevant: http://stackoverflow.com/q/4854513/1256347  

---

## 1 answers

### Answer by username_3 on 2015-02-25. Score: 1

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.


---

