Rip DVD track

By | 26 Aug 2008

To rip a DVD track to a file, you need the transcode package and the encoders you’re going to use.

To rip a single track as ogg, use the command

transcode -i /dev/scd0 -x dvd -T 5,15 -a 0 -y null,ogg -o ~/Nasty.oggCode language: JavaScript (javascript)

This would rip audio only (video goes to null) chapter 5, track 15 to the file Nasty.ogg.

transcode -i /dev/scd0 -x dvd -T 5,15 -a 0 -y null,raw -b 192 -o ~/Nasty.mp3Code language: JavaScript (javascript)

This one rips to a mp3 file. The codec is raw because transcode internally works with mp3.

UPDATE: The raw audio encoder is deprecated and tcaud should be used instead. Use this:

transcode -i /dev/scd0 -x null,dvd -y null,tcaud -T 1,8 -a 0 --lame_preset extreme -m outputfile.mp3Code language: JavaScript (javascript)

More information about how to use transcode is explained here: ubuntuforums.org.

mplayer

Find out the longest DVD track using lsdvd:

lsdvd | grep Longest

Then dump that track with mplayer:

mplayer dvd://02 -v -dumpstream -dumpfile output.vobCode language: JavaScript (javascript)

Convert with avidemux, avconv or similar, e.g.:

avconv -i output.vob -map 0:0 -map 0:1 -qscale:0 8 -qscale:2 2 -filter:v yadif output.mp4

avconv -i output.vob -map 0:0 -map 0:1 -f avi -c:v mpeg4 -b:v 800k -g 300 -bf 2 -c:a libmp3lame -b:a 128k -async 30 output-en.avi

avconv -ss 00:24:02 -i output.vob -map 0:0 -map 0:1 -qscale:0 8 -qscale:2 2 -filter:v yadif -t 00:05:55 output.mp4Code language: CSS (css)

Leave a Reply

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

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.