Skip to content

RFC 3092

Etymology of "Foo"

  • The RFC 3092
  • Projects
    • avelsieve
    • check_process_runtime
    • CloudPress
  • About

The Foo Of Ripping Audio From A DVD

Posted on December 10, 2010 - March 29, 2012 by peter

During my latest clean up I found a couple of DVD’s from which I would like to have just the audio as an MP3. Here we go…

First of all I needed to know the structure of the audio tracks on that DVD. Digging through the Ubuntu repository brought lsdvd to my attention. A quick install:

aptitude install lsdvd

A quick check of the manpage and lsdvd revealed everything I wanted to know about this DVD:

peter@asterix:~$ lsdvd -a
libdvdread: Using libdvdcss version 1.2.10 for DVD access
Disc Title: NEO_DVD
Title: 01, Length: 00:11:50.050 Chapters: 01, Cells: 01, Audio streams: 03, Subpictures: 01
Audio: 1, Language: xx - Unknown, Format: lpcm , Frequency: 48000, Quantization: 16bit, Channels: 2, AP: 2, Content: Undefined, Stream id: 0xa0
Audio: 2, Language: xx - Unknown, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 2, Content: Undefined, Stream id: 0x81
Audio: 3, Language: xx - Unknown, Format: mpeg1, Frequency: 48000, Quantization: 16bit, Channels: 2, AP: 2, Content: Undefined, Stream id: 0xc2

Title: 02, Length: 00:07:37.000 Chapters: 01, Cells: 01, Audio streams: 03, Subpictures: 01
Audio: 1, Language: xx - Unknown, Format: lpcm , Frequency: 48000, Quantization: 16bit, Channels: 2, AP: 2, Content: Undefined, Stream id: 0xa0
Audio: 2, Language: xx - Unknown, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 2, Content: Undefined, Stream id: 0x81
Audio: 3, Language: xx - Unknown, Format: mpeg1, Frequency: 48000, Quantization: 16bit, Channels: 2, AP: 2, Content: Undefined, Stream id: 0xc2

Longest track: 01

And now lets copy the audio with transcode. Okay,… another install item:

aptitude install transcode

I am using my DVD burner so the device in Ubuntu is /dev/dvdrw and as a first test I want to get the whole audio in one file.

transcode -i /dev/dvdrw -x dvd,dvd -T 1,-1,1 -y null,tcaud -m all_tracks.mp3

Works like a charm, so lets get all the tracks as separate files. A nice for-loop is a good helper here:

for i in `seq 1 2`; do
transcode -i /dev/dvdrw -x dvd,dvd -T 1,${i},1 -y null,tcaud -m track_${i};
done

Et voila, I have nice MP3 tracks that just need a little tagging with id3v2.

Now l am occupied with grabbing my library of DVD’s.

Keep on hackin’…

Posted in DVD, Linux, MP3

Post navigation

avelsieve 1.9.9 With PHP 5.3.x Patch
DVD Audio Foo Bar
Proudly powered by WordPress | Theme: micro, developed by DevriX.