Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-24T11:26:07.653Z
Answers.LastActivityDate: 2016-05-24T11:26:07.653Z
Answers.UserDisplayName: Gyan
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-24T09:00:39.283Z
Comments.Text: Paste the console output of the ffmpeg command you ran.
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-05-24T10:58:25.553Z
Comments.Text: Here's the output: http://pastebin.com/n0E2e07P
Comments.UserDisplayName: user14689
Tags: <ffmpeg><audio><avi>
Title: How can I demux avi?
UserDisplayName: user14689
ThreadText: # 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
  
  ```
  
  
  ---
  
  