<p>Your audio is PCM, but you're trying to streamcopy to AAC, which won't work.</p>

<p>To extract the audio to WAV, use</p>

<pre><code>ffmpeg -i DSCN5008.AVI -acodec copy -y a.wav
</code></pre>

<p>To <strong>transcode</strong> the audio to AAC, use</p>

<pre><code>ffmpeg -i DSCN5008.AVI -acodec aac -y a.aac
</code></pre>

<p>Note that AAC isn't lossless. But FLAC is a lossless and compressed codec.</p>

<pre><code>ffmpeg -i DSCN5008.AVI -acodec flac -y a.flac
</code></pre>

CC BY-SA 3.0
2016-05-24T11:26:07.653Z
2016-05-24T11:26:07.653Z
Gyan
<p>I want to demux the audio from avi files, so that the files are lossless. I tried both Yamb and Ffmpeg. Both produce files less than 1 MB (for a video of 80 MB), which are unplayable through VLC. I tried avidemux, and it says it can't export in copy mode.</p>

CC BY-SA 3.0
2016-05-24T09:00:39.283Z
Paste the console output of the ffmpeg command you ran.
Gyan
CC BY-SA 3.0
2016-05-24T10:58:25.553Z
Here's the output: http://pastebin.com/n0E2e07P
user14689
<ffmpeg><audio><avi>
How can I demux avi?
user14689
# How can I demux avi?

(Asked by: username_0 on 2016-05-24)

I want to demux the audio from avi files, so that the files are lossless. I tried both Yamb and Ffmpeg. Both produce files less than 1 MB (for a video of 80 MB), which are unplayable through VLC. I tried avidemux, and it says it can't export in copy mode.

**Tags:** ffmpeg, audio, avi

> **Comments:**
> **username_1**: Paste the console output of the ffmpeg command you ran.  
> **username_0**: Here's the output: http://pastebin.com/n0E2e07P  

---

## 1 answers

### Answer by username_1 on 2016-05-24. Score: 3 | Accepted answer

Your audio is PCM, but you're trying to streamcopy to AAC, which won't work.
To extract the audio to WAV, use
ffmpeg -i DSCN5008.AVI -acodec copy -y a.wav

To transcode the audio to AAC, use
ffmpeg -i DSCN5008.AVI -acodec aac -y a.aac

Note that AAC isn't lossless. But FLAC is a lossless and compressed codec.
ffmpeg -i DSCN5008.AVI -acodec flac -y a.flac


---

