Extract audio from .VOB files
Using mplayer you can get the audio from a dvd. First you need to copy the .VOB files to your harddisk, this can be done using vobcopy or mplayer. To extract the audio from the .VOB use this command:
$ mplayer -vo null -vc null -ao pcm:file=myaudiofile.wav -aid 128 myvideofile.vob
The -vo and -vc null options are used to not play/encode the video. With -ao pcm:file=myaudiofile.wav mplayer writes the audio output to a wav file, named myaudiofile.wav. The -aid 128 option selects the audio channel, where 128 is the first dvd audio channel. It’s possible to select the audio channel using the -alang option, to select the english channel you can use -alang en. Here you can see a list of the dvd language codes.
Once you’ve the audio as a wav file you can convert it to mp3 using lame:
$ lame myaudiofile.wav myaudiofile.mp3
0 comments
