Rip DVD Audio with MPlayer

By | 2010/06/23

You can use MPlayer to rip audio from a DVD into a high quality .wav file.

You will need to add the medibuntu repo in order to install libdvdcss.

sudo apt-get install libdvdcss2 mplayer

Pop in your favorite DVD, then issue this command:

mplayer -vo null -ao pcm -ao pcm:file=audio.wav dvd://01

You may have to adjust the last part dvd://01 to dvd://02, or another track.

This command is basically telling mplayer to play back the DVD with no video, and dump the audio as PCM audio to a wav file.

Once you have that wav file, you can edit it with Audacity, or use lame to encode it as an mp3.


5 thoughts on “Rip DVD Audio with MPlayer

  1. Jonathan Woodbury

    Thanks for getting me started! I ended up wanting to make separate files for each chapter. The -chapter option permits starting and stopping at particular chapters, but I didn’t get it working with just the -ao option. Here’s what I cooked up…

    $ lsdvd
    libdvdread: Using libdvdcss version 1.2.12 for DVD access
    Disc Title: PHILIPS
    Title: 01, Length: 00:59:12.320 Chapters: 24, Cells: 24, Audio streams: 01, Subpictures: 00

    Longest track: 01

    $ for x in {01..24}; do mplayer dvd://01 -chapter $x-$x -dumpaudio -dumpfile track$x.ac3; done
    $ find . -name "*.ac3" -exec mplayer -vo null -ao pcm:file={}.wav {} \;

  2. turiakki

    Does the command really require the -ao switch twice as above?

    Also, I wonder what format the audio is going to be in. If I use flac to convert the .wavs to 24bit, will I loose some information is the output wav is s16be or s32le for example?

    1. MRR0DR160

      Well, doesn’t that mean you’d be telling the transcoder to store the same information on either more (16 to 24) or less (32 to 24) bits?

  3. Hamlet

    Using: `mplayer -novideo -ao ‘pcm:file=path/to/output/file.wav’ dvd://06` with mplayer 1.3.0 extracted the audio from chapter 6 to a stereo 48000 samples/second, 32 bits/sample WAV file, taking in few seconds.
    It also managed to skip flawed parts of the DVD (maybe scratches), which I could not convince VLC nor transcode to do.


Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.