Re: [LAU] Getting the audio track from DVDs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Julien Claassen <julien@...>
Cc: <linux-audio-user@...>
Date: Saturday, February 16, 2013 - 12:20 pm

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 wrote:

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAU] Getting the audio track from DVDs, , (Fri Feb 15, 11:28 pm)
Re: [LAU] Getting the audio track from DVDs, Julien Claassen, (Fri Feb 15, 11:42 pm)
Re: [LAU] Getting the audio track from DVDs, Chris Hogan, (Sat Feb 16, 12:20 pm)
Re: [LAU] Getting the audio track from DVDs, Julien Claassen, (Sun Feb 17, 1:54 am)
Re: [LAU] Getting the audio track from DVDs, Julien Claassen, (Sat Feb 16, 12:34 pm)