Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
2  
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
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.