Pages

Wednesday, July 06, 2005

MPlayer: Extracting Audio from a DVD

Some times, for whatever reasons we may have to extract audio from a DVD. Such a task can be done very easily with MPlayer. The following command dumps the audio from the 1st chapter of the DVD to a WAV file:
% mplayer -vc dummy -vo null -ao pcm -aofile dummy.wav dvd://1 -dvd-device /cdrom
Where:
-vc dummy suggests using a dummy video codec, since we don't need video play back
-vo null suggests MPlayer to disable video play back
-ao pcm stands for raw PCM/WAVE file writer audio output
-aofile dummy.wav suggests dummy.wav to be the audio output file
dvd://1 tells mplayer to play the 1st chapter of the DVD, and
-dvd-device /cdrom points to the location of DVD drive

To learn more about mplayer options, have a look at the man page of mplayer
______________________
Technorati tag:

No comments:

Post a Comment