Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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 want to make a CD using the audio tracks of some video clips. I was thinking of using avconv to convert the files. As far as the other steps go, I found some instructions on the Arch Wiki. This is the command that gets used:

for i in *.mp3; do mpg123 --rate 44100 --stereo --buffer 3072 --resync -w `basename $i .mp3`.wav $i; done

Obviously I am not dealing with mp3 files, so I need the avconv equivalent of the above one-liner for dealing with mp4 and flv files. I can provide additional information about the files' bitrates and such if necessary.

share|improve this question
avconv may work the same way: ffmpeg -i some.vid -map a:1 -ar 44100 out.wav – frostschutz Apr 8 '13 at 20:54
MP3s and probably the codecs used for the audio channel of the videos is compressed in a lossy fashion. It is not CD quality and you will never be able to get your data back once thrown away. CD quality can only be obtained with lossless codecs. – Marco Apr 8 '13 at 20:57
@Marco: I don't think that was in doubt, but cdrecord still needs CD-quality WAV files. From man cdrecord, All audio files must be in 44100 Hz 16 bit stereo format.. My above comment only covers the sample rate, I forgot about the number of channels... – frostschutz Apr 8 '13 at 21:55

Your Answer


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

Browse other questions tagged or ask your own question.