How to create WAVE file for audio CD

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
pdchandler
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Feb 2009 04:54

How to create WAVE file for audio CD

Postby pdchandler » 15 Feb 2009 10:34

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,

Rémi Denis-Courmont
Developer
Developer
Posts: 15336
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to create WAVE file for audio CD

Postby Rémi Denis-Courmont » 15 Feb 2009 12:58

Use s16l, not fl32. Audio CD have 16-bits per sample.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

pdchandler
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Feb 2009 04:54

Re: How to create WAVE file for audio CD

Postby pdchandler » 17 Feb 2009 13:27

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 ...

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to create WAVE file for audio CD

Postby Jean-Baptiste Kempf » 17 Feb 2009 13:39

What is the correct line you used?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pdchandler
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Feb 2009 04:54

Re: How to create WAVE file for audio CD

Postby pdchandler » 28 Feb 2009 08:33

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"}

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to create WAVE file for audio CD

Postby Jean-Baptiste Kempf » 28 Feb 2009 14:06

Would it work with ab=128?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

pdchandler
Blank Cone
Blank Cone
Posts: 34
Joined: 15 Feb 2009 04:54

Re: How to create WAVE file for audio CD

Postby pdchandler » 15 Aug 2009 23:22

I can confirm that cdrecord is happy to burn the WAV to a CD if it is created with ab=128


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 52 guests