[LAU] Getting the audio track from DVDs

Chris Hogan hodginson at gmail.com
Sat Feb 16 12:20:24 UTC 2013


Here's the relevant part of a script I've been using to do this. It's
nothing fancy but it works, it just dumps the audio as numbered wav
files (one file for each chapter). With a bit more creative scripting
you could automatically set the variables at the start by pulling them
out of lsdvd's output, but I'll leave that as an exercise for the
curious reader (i.e. I am lazy).


#!/bin/bash

#set these to match the dvd you want to rip
#use lsdvd to figure out which title and how many chapters you need
dvdpath=/dev/sr0
title=1
number_of_chapters=18


songnumber=1
while [ $songnumber -le $number_of_chapters ]; do
    mplayer dvd://$title -chapter $songnumber-$songnumber -dvd-device
$dvdpath -vo null -vc dummy -ao pcm:file=$songnumber.wav
    let songnumber=songnumber+1;
done





On Sat, Feb 16, 2013 at 10:42 AM, Julien Claassen <julien at mail.upb.de> wrote:
> Hello!
>   I always use mplayer for that:
> mplayer -vo null -dumpaudio -dumpfile output.mp3 intput.vob
>   works like a treat. Maybe you could even use mencoder or ppossibly the
> ffmpeg utility or whatever it was they suggested at the time for extracting
> audi from youtube.
>   If you want a different format than mp3, something like this might do the
> trick:
> mplayer -ao pcm:file=tmp.wav -vo null input.vob
>   And then encode the tmp.wav to whatever you like. It's also easily
> scriptable.
>   You will only get seperate songs out of that, if they are stored in
> seperate .vob-files.
>   I have written a script to trim recordings from radio. With a slight
> adjustment that script will work for videos as well. It relies on you
> listening to / skipping through the input and marking times. It uses
> ecasound to do the trimming.
>   Hope that helps.
>   ciao
>          Julien
>
> ----------------------------------------
> http://juliencoder.de/nama/music.html
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user at lists.linuxaudio.org
> http://lists.linuxaudio.org/listinfo/linux-audio-user


More information about the Linux-audio-user mailing list