Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

extract audio from a dvd [solved!]

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
zojas
Veteran
Veteran
User avatar
Posts: 1136
Joined: Mon Apr 22, 2002 11:29 pm
Location: Phoenix, AZ
Contact:
Contact zojas
Website

extract audio from a dvd [solved!]

  • Quote

Post by zojas » Fri Jun 11, 2004 9:44 pm

I bought an audio cd which came with a dvd. the dvd contains two previously-unreleased audio recording (as dvd video, they are each a chapter).

so how can I extract just the audio, and preferably save it to my hard drive as a wav file, just like I had ripped it from an audio cd with cdparanoia?

I found a hit on the web which said to use transcode like this:

Code: Select all

transcode -i /dev/dvd -x dvd -T 1,6 -a 0 -y wav -m track6.wav
to get chapter 6 of title 1. I tried that, but the resulting wav file just played as static

do you think it's because the dvd is encrypted?

If so, I got chapter 6 and chapter 7 (the two songs) decrypted and extracted to their own little vob directories on my hard drive (using a free software program I found for OS X) but then I couldn't figure out how to get transcode to use the resulting VOB directory. (transcode seems to have very little documentation)

thanks
Last edited by zojas on Sat Jun 12, 2004 3:04 pm, edited 1 time in total.
http://www.desertsol.com/~kevin/ppc
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jun 11, 2004 11:18 pm

zojas,

Use mplayer. The man page contains a command to do just what you want. I recall the example pipes the audio through lame, so you end up with an ogg or mp3 but you don't have to do that.

You may need to resample the audio to get a wav you can listen to. DVD audio is sampled at 48kHz and a wav file is like a CD at 44.1 kHz
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jun 11, 2004 11:27 pm

zojas,

Use mplayer. The man page contains a command to do just what you want. I recall the example pipes the audio through lame, so you end up with an ogg or mp3 but you don't have to do that.

You may need to resample the audio to get a wav you can listen to. DVD audio is sampled at 48kHz and a wav file is like a CD at 44.1 kHz
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
sploo22
n00b
n00b
Posts: 20
Joined: Thu Aug 21, 2003 12:23 pm
Location: Cayman Brac, Cayman Islands

  • Quote

Post by sploo22 » Sat Jun 12, 2004 1:35 am

If you're getting static, try adding the "-d" option to transcode. That might fix the problem.
This signature will self-destruct in 10 seconds. Close browser window now to avoid permanent monitor damage.
Top
Regor
Guru
Guru
User avatar
Posts: 545
Joined: Tue Aug 06, 2002 5:25 am
Location: 39° 2' 48" N, 120° 59' 2" W

  • Quote

Post by Regor » Sat Jun 12, 2004 6:38 am

I second the recommendation for mplayer. I use a command that looks like this:

Code: Select all

TITLE=1
CHAPTER=3-3
mplayer dvd://$TITLE -chapter $CHAPTER -vo null -vc dummy -ao pcm -srate 44100 -aofile $TITLE-$CHAPTER.wav
Set TITLE and CHAPTER to appropriate values for whatever you want to rip.
Sometimes the appropriate response to reality is to go insane.
-Philip K. Dick, Valis
Top
zojas
Veteran
Veteran
User avatar
Posts: 1136
Joined: Mon Apr 22, 2002 11:29 pm
Location: Phoenix, AZ
Contact:
Contact zojas
Website

  • Quote

Post by zojas » Sat Jun 12, 2004 3:00 pm

Since I already had transcode in my history list, I tried adding the '-d' flag. that did the trick.

here's the exact commands I used:

Code: Select all

transcode -d -i /dev/cdrom -x dvd -T 6,1,1 -a 0 -y wav -m track6.wav
transcode -d -i /dev/cdrom -x dvd -T 7,1,1 -a 0 -y wav -m track7.wav
I'm sure mplayer would have worked too, and next time I'll give that a try.

thanks.
http://www.desertsol.com/~kevin/ppc
Top
dhewton
Guru
Guru
User avatar
Posts: 461
Joined: Sat Aug 14, 2004 8:54 pm
Location: Canada

  • Quote

Post by dhewton » Wed May 17, 2006 5:59 am

Can you help me?

I have ripped a dvd to my drive, and would like to know how to extract just the audio so I can make wav or mp3 files.

The DVD is a musical, and I would like to make an audio cd of the the whole DVD.

Thanks

Dan
DannyBoy
Top
zojas
Veteran
Veteran
User avatar
Posts: 1136
Joined: Mon Apr 22, 2002 11:29 pm
Location: Phoenix, AZ
Contact:
Contact zojas
Website

  • Quote

Post by zojas » Wed May 17, 2006 1:31 pm

either of the two commands above should work. you just need to change the input source. in transcode, change the /dev/cdrom part (and possibly the 'dvd' part too?) and of course then run it for all chapters. in mplayer, change the dvd:// part to the path to where the files are (and then run it for all chapters)
http://www.desertsol.com/~kevin/ppc
Top
Centinul
Apprentice
Apprentice
Posts: 232
Joined: Thu Jul 28, 2005 10:56 pm

  • Quote

Post by Centinul » Fri May 19, 2006 2:55 pm

How long did it take to do it with transcode? Mine is just sitting there and i have no idea whether it is doing anything or not. I ran the same transcode command that you gave in the post above. Thanks!
Top
zojas
Veteran
Veteran
User avatar
Posts: 1136
Joined: Mon Apr 22, 2002 11:29 pm
Location: Phoenix, AZ
Contact:
Contact zojas
Website

  • Quote

Post by zojas » Fri May 19, 2006 9:43 pm

no idea, that was 2 years ago! :) if I had to guess, I'd say about as long as it would take to listen to it. I was only grabbing 2 tracks, 1 at a time. one thing you can do is in another window go to the directory and use ls -latrh a few times to see if it's producing any output
http://www.desertsol.com/~kevin/ppc
Top
optiluca
Guru
Guru
User avatar
Posts: 551
Joined: Mon Jan 16, 2006 5:20 pm
Location: Rivergaro, Italy

  • Quote

Post by optiluca » Sat May 20, 2006 12:45 pm

Hi. I was looking for a way to extract audio from a DVD and I found this. Unfortunately when I try to do it with mplayer I get:

Code: Select all

mplayer dvd://1 -chapter 3 -vo null -vc dummy -ao pcm:file=U2.wav -srate 44100
MPlayer dev-CVS-060415-00:32-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Athlon 64 X2 Manchester,Toledo (Family: 15, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2



91 audio & 208 video codecs
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Playing dvd://1.
Reading disc structure, please wait...
There are 1 titles on this DVD.
There are 40 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9800.0 kbps (1225.0 kbyte/s)
File not found: '/home/luca/.mplayer/default.sub'
Failed to open /home/luca/.mplayer/default.sub
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
Cannot find codec 'dts' in libavcodec...
ADecoder init failed :(
ADecoder init failed :(
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to DTS, 768000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 768.0 kbit/50.00% (ratio: 96000->192000)
Selected audio codec: [hwdts] afm: hwac3 (DTS through S/PDIF)
==========================================================================
==========================================================================
Forced video codec: dummy
Cannot find codec matching selected -vo and video format 0x10000002.
Read DOCS/HTML/en/codecs.html!
==========================================================================
[format] Sample format big-endian AC3 not yet supported
Error at audio filter chain pre-init!

Exiting... (Fatal error)
And with transcode:

Code: Select all

transcode -d -i /dev/cdrom -x dvd -T 6,1,1 -a 0 -y wav -m track6.wav
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
Invalid title 6.
(probe_dvd.c) failed to probe DVD title information
[transcode] auto-probing source /dev/cdrom (failed)
[transcode] V: import format    | unknown  (V=dvd|A=(null))
[transcode] V: import frame     | 720x576  1.25:1
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 25.000,0
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]
[transcode] A: export format    | 0x55    MPEG layer-3 [48000,16,2]  128 kbps
[transcode] V: encoding fps,frc | 25.000,3
[transcode] A: bytes per frame  | 7680 (7680.000000)
[transcode] A: adjustment       | 0@1000
[transcode] A: swap bytes       | yes
[transcode] V: IA32/AMD64 accel | sse3 (sse3 sse2 sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using amd64 for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_dvd.so] v0.4.0 (2003-10-02) (video) DVD | (audio) MPEG/AC3/PCM
[export_wav.so] v0.2.3 (2003-01-16) (audio) WAVE PCM
Invalid title 6.
[import_dvd.so] failed to read DVD information
audio import module error: OPEN failed
[transcode] critical: failed to open input source
But the DVD is in my cdrom drive...

Any help??

Thanks in advance

Luca
Top
optiluca
Guru
Guru
User avatar
Posts: 551
Joined: Mon Jan 16, 2006 5:20 pm
Location: Rivergaro, Italy

extract audio from a dvd

  • Quote

Post by optiluca » Sun May 21, 2006 2:19 pm

Tried another DVD, which works with Mplayer, but the whole disc gets converted....
I'm using this command:

Code: Select all

mplayer dvd://1 -chapter 3-3 -vo null -vc dummy -ao pcm:file=U2.wav -srate 44100
PS: The .wav volume is also VERY low. Is there any way to extract the audio at a higher volume?
Top
zojas
Veteran
Veteran
User avatar
Posts: 1136
Joined: Mon Apr 22, 2002 11:29 pm
Location: Phoenix, AZ
Contact:
Contact zojas
Website

  • Quote

Post by zojas » Mon May 22, 2006 12:56 am

transcode had no volume issues for me.
http://www.desertsol.com/~kevin/ppc
Top
optiluca
Guru
Guru
User avatar
Posts: 551
Joined: Mon Jan 16, 2006 5:20 pm
Location: Rivergaro, Italy

  • Quote

Post by optiluca » Mon May 22, 2006 12:00 pm

But, as I've already pointed out, transcode doesn't work at all with me...
Why on earth doesn't it recognize the DVD???? :?
Top
Post Reply

14 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic