Difference between revisions of "WAVE"

From VideoLAN Wiki
Jump to navigation Jump to search
(conversion howto)
m (vlc://quit)
Line 11: Line 11:
 
The commandline for converting any readable input file to a WAVE audio file is the following:
 
The commandline for converting any readable input file to a WAVE audio file is the following:
  
   <span style="color:grey">vlc</span> -I dummy -vvv <span style="color:green">"input.mp3"</span> --sout=#transcode{acodec=<span style="color:red">fl32</span>,channels=2,ab=<span style="color:purple">128</span>}:standard{access=file,mux=wav,dst=<span style="color:blue">"output.wav"</span>} vlc:quit
+
   <span style="color:grey">vlc</span> -I dummy -vvv <span style="color:green">"input.mp3"</span> --sout=#transcode{acodec=<span style="color:red">fl32</span>,channels=2,ab=<span style="color:purple">128</span>}:standard{access=file,mux=wav,dst=<span style="color:blue">"output.wav"</span>} vlc://quit
  
 
Where on Windows you need to add installation directory in front of  <span style="color:grey">vlc</span> (e.g. "C:\Program Files\VideoLAN\VLC\<span style="color:grey">vlc</span>").
 
Where on Windows you need to add installation directory in front of  <span style="color:grey">vlc</span> (e.g. "C:\Program Files\VideoLAN\VLC\<span style="color:grey">vlc</span>").

Revision as of 01:37, 28 September 2008

wav
VLC can encode and decode this container.
The module name to use at the command line is wav.

WAVE is a way of storing audio, which is normally uncompressed. It is based on RIFF.

Accepted audio codecs

  • dummy: Uncompressed audio of various types, based on storing integer values of the amplitude of the sound (see PCM).
  • fl32: Floating point 32-bit uncompressed audio, also based on PCM but allowing the values to be stored as floating point data types. This can give better quality audio when the sound becomes quiet.

Converting to WAVE

The commandline for converting any readable input file to a WAVE audio file is the following:

 vlc -I dummy -vvv "input.mp3" --sout=#transcode{acodec=fl32,channels=2,ab=128}:standard{access=file,mux=wav,dst="output.wav"} vlc://quit

Where on Windows you need to add installation directory in front of vlc (e.g. "C:\Program Files\VideoLAN\VLC\vlc").

As audio codec (acodec) you can specify one of the above mentioned ones. The bitrate of the output file is specified by the ab parameter.

Source code