Page 1 of 1

How to create WAVE file for audio CD

Posted: 15 Feb 2009 10:34
by pdchandler
Folks,

I apologize if this request is trivial or if I've posted in the wrong spot.

I've managed to conquer a number of things with command-line vlc, such as simulataneously streaming to a wav file, mp3 file and rtsp. The platform I'm using is XP.

But what I want to do, and has got me stumped, is to create a little routine which will automagically convert an audio file which vlc can play (such as mp3) to a wav file suitable for burning to an Audio CD (using software such as cdrecord).

This is what I have:

\path\to\vlc.exe somefile.mp3 :sout=#transcode{acodec=fl32,channels=2,ab=16,samplerate=44100}:standard{access=file,mux=wav,dst="outfile.WAV"}

I did it this way because http://wiki.videolan.org/WAVE says to use fl32 as the acodec.

But cdrecord protests that fl32 is not "PCM Audio" and refuses to burn. Gspot can't detect the codec.

Incomparison, if I record directly my sound card and I have a sout which reads (in part):

std{access=file,mux=wav,ab=16,rate=44100,dst="outfile"} [note - there is no transcoding occuring]

cdrecord is quite happy with this file being PCM Audio. Gspot tells me it is, too.

So the question is a simple one - what codec should be used for PCM Audio, so that my mp3 can be converted to a wav?

Thanks,

Re: How to create WAVE file for audio CD

Posted: 15 Feb 2009 12:58
by RĂ©mi Denis-Courmont
Use s16l, not fl32. Audio CD have 16-bits per sample.

Re: How to create WAVE file for audio CD

Posted: 17 Feb 2009 13:27
by pdchandler
Thanks ... that did the trick ... cdrecord now happy with me. Probably be good if the wiki page (http://wiki.videolan.org/WAVE) had this snippet of advice on it as well ...

Re: How to create WAVE file for audio CD

Posted: 17 Feb 2009 13:39
by Jean-Baptiste Kempf
What is the correct line you used?

Re: How to create WAVE file for audio CD

Posted: 28 Feb 2009 08:33
by pdchandler
The portion of the line, which now works, is:

:sout=#transcode{acodec=s16l,channels=2,ab=16,samplerate=44100}:standard{access=file,mux=wav,dst="outfile.WAV"}

Re: How to create WAVE file for audio CD

Posted: 28 Feb 2009 14:06
by Jean-Baptiste Kempf
Would it work with ab=128?

Re: How to create WAVE file for audio CD

Posted: 15 Aug 2009 23:22
by pdchandler
I can confirm that cdrecord is happy to burn the WAV to a CD if it is created with ab=128