Forums

Skip to content

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

[solved] ripping audio only from a DVD

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
7 posts • Page 1 of 1
Author
Message
laurentgedm
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Wed Feb 23, 2005 9:00 pm
Location: Brussels

[solved] ripping audio only from a DVD

  • Quote

Post by laurentgedm » Wed Sep 06, 2006 2:56 pm

Hi all!

I need to rip the audio from a DVD. I know it's title 38, chapter 3.

I read i could use tcextract to do this... but how can I tell it to rip chapter 3 in title 38?

Still trying, but i'd be sooo happy if someone could tell me a fast way of doing it...

THX!

Code: Select all

# ls /media/cdrecorder/VIDEO_TS/
VIDEO_TS.BUP  VTS_01_0.BUP  VTS_01_1.VOB  VTS_02_0.VOB  VTS_03_0.IFO  VTS_03_2.VOB  VTS_04_0.VOB  VTS_05_0.BUP  VTS_05_1.VOB  VTS_06_0.IFO  VTS_07_0.BUP  VTS_07_1.VOB
VIDEO_TS.IFO  VTS_01_0.IFO  VTS_02_0.BUP  VTS_02_1.VOB  VTS_03_0.VOB  VTS_04_0.BUP  VTS_04_1.VOB  VTS_05_0.IFO  VTS_05_2.VOB  VTS_06_0.VOB  VTS_07_0.IFO
VIDEO_TS.VOB  VTS_01_0.VOB  VTS_02_0.IFO  VTS_03_0.BUP  VTS_03_1.VOB  VTS_04_0.IFO  VTS_04_2.VOB  VTS_05_0.VOB  VTS_06_0.BUP  VTS_06_1.VOB  VTS_07_0.VOB
Last edited by laurentgedm on Wed Sep 06, 2006 3:42 pm, edited 1 time in total.
Top
laurentgedm
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Wed Feb 23, 2005 9:00 pm
Location: Brussels

  • Quote

Post by laurentgedm » Wed Sep 06, 2006 3:16 pm

I tried this:

Code: Select all

transcode -i /mnt/cdrom/VIDEO_TS/VTS_06_1.VOB -x dvd -y lame -U audiocordy
But i get errors:

Code: Select all

# transcode -i /mnt/cdrom/VIDEO_TS/VTS_06_1.VOB -x dvd -y lame -U audiocordy
transcode v1.0.2 (C) 2001-2003 Thomas Oestreich, 2003-2004 T. Bitterberg
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdread: Can't open file VIDEO_TS.IFO.
[transcode] (probe) suggested AV correction -D 1 (40 ms) | AV 79 ms | 39 ms
[transcode] auto-probing source /mnt/cdrom/VIDEO_TS/VTS_06_1.VOB (ok)
[transcode] V: import format    | MPEG-2  (V=dvd|A=vob)
[transcode] V: AV demux/sync    | (1) sync AV at initial MPEG sequence
[transcode] V: import frame     | 720x576  1.25:1  encoded @ 4:3
[transcode] V: bits/pixel       | 0.174
[transcode] V: decoding fps,frc | 25.000,3
[transcode] V: Y'CbCr           | YV12/I420
[transcode] A: import format    | 0x2000  AC3          [48000,16,2]  192 kbps
[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] V: IA32/AMD64 accel | sse2 (sse2 sse 3dnowext 3dnow mmxext mmx asm C)
tc_memcpy: using amd64 for memcpy
[transcode] V: video buffer     | 10 @ 720x576
[import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio) MPEG/AC3/PCM | (subtitle)
[import_dvd.so] v0.4.0 (2003-10-02) (video) DVD | (audio) MPEG/AC3/PCM
[export_lame.so] v0.0.3 (2003-03-06) (audio) MPEG 1/2
[transcode] warning : (encoder.c) video codec not supported by export module
[transcode] warning : failed to init export modules
[transcode] critical: plug-in initialization failed
EDIT: i checked i had the necessary modules:

Code: Select all

# locate libmp3lame
/usr/lib64/libmp3lame.so.0.0.0
/usr/lib64/libmp3lame.so.0
/usr/lib64/libmp3lame.so
/usr/lib64/libmp3lame.la
/usr/lib64/libmp3lame.a
/emul/linux/x86/usr/lib/libmp3lame.so.0.0.0
/emul/linux/x86/usr/lib/libmp3lame.so.0
/emul/linux/x86/usr/lib/libmp3lame.so
Top
GordSki
Guru
Guru
User avatar
Posts: 329
Joined: Mon Oct 18, 2004 7:48 pm
Contact:
Contact GordSki
Website

  • Quote

Post by GordSki » Wed Sep 06, 2006 3:26 pm

mplayer can do it:

Code: Select all

mplayer -dvddevice <dvd-device> dvd://38 -chapter 3-3 -dumpaudio -dumpfile audio_track.out -aid <audio track-id>

<dvd-device>       - This should be the path to your dvd-rom's device node, eg /dev/dvd
<audio track-id>   - This is the ID of the track you want to rip. Use lsdvd to get this, it should be a hex number starting '0x'.
Hope this helps!

G.

EDIT: The above will give you the raw AC3 track, you might then be able to use transcode to do the mp3 conversion.
Last edited by GordSki on Wed Sep 06, 2006 3:28 pm, edited 1 time in total.
Top
jesso
Guru
Guru
Posts: 397
Joined: Wed Oct 27, 2004 2:16 pm
Location: Canada

  • Quote

Post by jesso » Wed Sep 06, 2006 3:27 pm

Try this my brother.

Code: Select all

How can I save the audio track of a DVD directly to a WAVE file suitable for burning onto an Audio CD?

A: Suppose you want the 2nd audio stream from title #2:

      transcode -x null,dvd \
                -i /dev/dvd \
                -T2,-1 \
                -a 1 \
                -y wav \
                -J resample \
                -E 44100 \
                -o foo.wav

The resampling is needed since DVD audio is usually sampled at 48 kHz. 
Taken from

http://www.transcoding.org/cgi-bin/tran ... nscode_FAQ


I haven't tried it myself. That should give you a WAVE file. Then use "lame" to enocde it to MP3.

Something to work with anyways.
Top
GordSki
Guru
Guru
User avatar
Posts: 329
Joined: Mon Oct 18, 2004 7:48 pm
Contact:
Contact GordSki
Website

  • Quote

Post by GordSki » Wed Sep 06, 2006 3:32 pm

jesso wrote:

Code: Select all

How can I save the audio track of a DVD directly to a WAVE file suitable for burning onto an Audio CD?

A: Suppose you want the 2nd audio stream from title #2:

      transcode -x null,dvd \
                -i /dev/dvd \
                -T2,-1 \
                -a 1 \
                -y wav \
                -J resample \
                -E 44100 \
                -o foo.wav

The resampling is needed since DVD audio is usually sampled at 48 kHz. 
That looks like the best solution, if you set the -T flag to '38,3' then that should get you the chunk of audio you want.

G.
Top
laurentgedm
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Wed Feb 23, 2005 9:00 pm
Location: Brussels

  • Quote

Post by laurentgedm » Wed Sep 06, 2006 3:42 pm

GREAT!!! It worked!

Thanks A LOT!!!!
Top
dmitchell
Veteran
Veteran
User avatar
Posts: 1159
Joined: Sat May 17, 2003 4:51 pm
Location: Austin, Texas

  • Quote

Post by dmitchell » Wed Sep 06, 2006 11:42 pm

I answered this very question not more than two days ago. See Pulling audio off a DVD.
Your argument is invalid.
Top
Post Reply

7 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