Elentok's Blog

About me

Extract audio from video files using VLC

You can use the following command to extract audio from a video file using VLC:

$ vlc "Source File" \
    --sout #transcode{acodec=mp3}\

(Important!: The argument of "--sout" must have no spaces in it (except for in the "dst" attribute).

To only extract a segment of audio use the following command:

$ vlc "Source File" \
  --start-time=<start time (in seconds)> \
  --stop-time=<stop time (in seconds)> \
  --sout #transcode{acodec=mp3}\
Next:Record a stream using VLC