Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Capturing DVD Audio as WAV
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
discoflamingo
n00b
n00b


Joined: 21 Dec 2002
Posts: 16
Location: St Paul MN, USA

PostPosted: Tue Nov 04, 2003 2:26 am    Post subject: Capturing DVD Audio as WAV Reply with quote

Back when I was on Slackware, I would run:
Code:
vsound -f nameofwav.wav ogle


and everything worked fine. I would search ahead by chapters, and get sections of sound I wanted. (I'm doing some dj work) I just got back into Linux sound work, and I have ALSA configured and running like a champ, but I get

Code:
Missing file ./vsound969.au.
This means that the libvsound wrapper did not work correctlty.
Here are some the possible reasons :
 - You are trying to record a stream (RTSP or PNM protocol) from
   the internet. You will need to use the --timing option.
 - The program you are trying to run is setuid. You will need to
   run vsound as root.
 - Vsound was not properly installed and hence won't work at all.


I'm running both as root - any ideas?
Back to top
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Tue Nov 04, 2003 8:18 am    Post subject: Reply with quote

vsound - neat idea. Hadn't heard of that before.

One thing that comes to mind is that vsound apparently only supports recording audio output into oss. I got the same error you did and I'm guessing it's because I've compiled ogle (and everything else) with USE containing "-oss alsa" which means that ogle is putting audio to alsa instead of oss so vsound isn't seeing it.

Again, this is just a guess since I've never used vsound before but it seems reasonable. Of course if you're using oss and not alsa, then I'm probably wrong. :)

Another way you can get audio off a dvd in a less interactively-friendly way is to use mplayer's pcm writer output. e.g. to put the audio of the dvd's title #1, chapter 8 to file chap8audio.wav, while not showing the video at all, you could do the following:
Code:

mplayer dvd://1 -chapter 8-8 -ao pcm -aofile chap8audio.wav -vc dummy -vo null


This should work regardless of the sound system you're using since it's not dependent on the audio output going anywhere but directly to a file.
_________________
Sometimes the appropriate response to reality is to go insane.
-Philip K. Dick, Valis
Back to top
View user's profile Send private message
discoflamingo
n00b
n00b


Joined: 21 Dec 2002
Posts: 16
Location: St Paul MN, USA

PostPosted: Tue Nov 04, 2003 4:34 pm    Post subject: Reply with quote

I'll try this out as soon as I get home - I've been using ALSA and I can't change that fact (ardour, rosegarden, and audacity all kind of need it). Most of the things I've seen on the web have said that vsound is more or less obsolete for ALSA tasks because of the pcm module capabilities. And the non-interactivity is good - it makes it scriptable. Thanks for the help!

EDIT: Works like a charm! Thanks a million!
Back to top
View user's profile Send private message
Gekko
l33t
l33t


Joined: 29 Oct 2002
Posts: 773

PostPosted: Wed Nov 05, 2003 4:03 pm    Post subject: Reply with quote

Hi!

Another nice way to do this is dvd::rip (in portage as dvdrip)
there you can rip the video or you can select the option to encode the audio alone with i think different codecs. Needs gtk.

Greets, Gekko
Back to top
View user's profile Send private message
andrew_j_w
Guru
Guru


Joined: 28 Jun 2003
Posts: 534
Location: York, UK

PostPosted: Wed Nov 05, 2003 7:12 pm    Post subject: Reply with quote

You should be able to do it using mplayer.
I haven't tested this as I haven't got any dvds to hand but...

Code:

mplayer -dvd 1 -vo null -ao pcm -aofile sound.wav


You can use mplayer's title/chapter options to get the right bits.

The file sound.wav will contain pcm encoded wav of the sound.

HTH,
Andrew
Back to top
View user's profile Send private message
TenPin
Guru
Guru


Joined: 26 Aug 2002
Posts: 500
Location: Kansas City

PostPosted: Wed Nov 05, 2003 7:54 pm    Post subject: Reply with quote

Also if you want the raw AC3 you can do similar to the above using -dumpaudio. Theres an AC3 plugin for XMMS too so you can have multichannel playback.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum