Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: HowTo: Rip DVD audio to mp3 or ogg

  1. #1
    Join Date
    May 2006
    Location
    UEA, Norwich, UK
    Beans
    185

    HowTo: Rip DVD audio to mp3 or ogg

    I found this the other day, after much searching on Google.
    First thing you need to do is make sure you have lsdvd and transcode installed:
    Code:
    sudo apt-get install lsdvd transcode
    Then do
    Code:
    lsdvd
    to find the track information, and the longest track (which will probably be what you want.
    To rip to ogg:
    Code:
    transcode -i /dev/dvd -x dvd -T a,b,1 -a 0 -y ogg -m track-a.ogg
    where a is replaced with the number of the title you want to rip from, and b is replaced with the track number. The track-a.ogg can be replaced with whatever you want to call the track, e.g. "/home/user/music/artist/album/track name.ogg", but make sure the directory already exists.
    Similarly with mp3:
    Code:
    transcode -i /dev/dvd -x dvd -T a,b,1 -a 0 -y raw -m track-a.mp3
    I hope this is useful to others; I know I couldn't do without it. Perhaps someone with more knowledge about these things than I can shed some light on what other options there are.

    Luke

  2. #2
    Join Date
    Oct 2005
    Beans
    25

    Talking Re: HowTo: Rip DVD audio to mp3 or ogg

    Thanks so much, this was so helpful to me. I had to rip an audio portion of an old film for a stage performance, and I knew the forums would come through!

  3. #3
    Join Date
    Sep 2006
    Beans
    24

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Wow! Good stuff...would be nice to be able to somehow specify exactly what seconds to record, and then also tell it to continue on with adjacent chapters, if possible. I had two songs I needed which jumped to the next chapters, and so I had to "sew" them back together in Audacity.

    Any ideas on this?

    - Matt

  4. #4
    Join Date
    Nov 2005
    Location
    Finland
    Beans
    4
    Distro
    Kubuntu 10.10 Maverick Meerkat

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Quote Originally Posted by sirmrmatt View Post
    Wow! Good stuff...would be nice to be able to somehow specify exactly what seconds to record, and then also tell it to continue on with adjacent chapters, if possible. I had two songs I needed which jumped to the next chapters, and so I had to "sew" them back together in Audacity.
    Hopefully this will still be of some use... The manpage for transcode tells
    Code:
    -T t[,c[,a]]
            select DVD title[,chapter[,angle]] [1,1,1]. Only a single chapter
            is transcoded. Use -T 1,-1 to trancode all chapters in a row. You
            can even specify chapter ranges.
    which means that if you use the option
    Code:
    -T title,a-b
    in the command line, you get chapters from a to b in the same file.

    The manpage tells also
    Code:
           -c f1-f2[,f3-f4[, ... ] ]
                  encode  only  frames  f1-f2 [and f3-f4]. Default is to encode all
                  available frames.  Use  this  and  you’ll  get  statistics  about
                  remaining  encoding  time.  The f[N] parameters may also be time‐
                  codes in the HH:MM:SS.FRAME format. Example:
                  -c 500-0:5:01,:10:20-1:18:02.1
    
                         Will encode only from frame 500 to 5 minutes and 1  second
                         and  from  10 min, 20 sec to 1 hour, 18 min, 2 sec and one
                         frame.
    
                  Note that transcode starts counting frames at 0 and excludes  the
                  last frame specified. That means that "-c 0-100" will encoded 100
                  frames starting at frame 0 up to frame 99
    HTH. :>

  5. #5
    Join Date
    Sep 2006
    Beans
    24

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Sweet!

    Very nice. Wish I'd had this before, but oh well!

    Thanks for contributing to the community like this, I know I certainly appreciate it, even if just for future reference.

    Best,
    Matt

  6. #6
    Join Date
    Sep 2006
    Location
    Germany
    Beans
    50
    Distro
    Ubuntu 6.10 Edgy

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Error:
    Ogg encoding throws this error:
    Code:
    [transcode] warning : (encoder.c) video codec not supported by export module
    [transcode] warning : failed to init export modules
    [transcode] critical: plug-in initialization failed
    Solution:
    Code:
    transcode -i /dev/dvd -x dvd -T 1,-1 -a 0 -y null,ogg -m audiotrack.ogg
    Note the
    Code:
    -y null,ogg
    argument!
    Found it here.

    Nice tutorial. Thanks!

  7. #7
    Join Date
    Feb 2007
    Beans
    14
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HowTo: Rip DVD audio to mp3 or ogg

    thanks it works a treat on gutsy

  8. #8
    Join Date
    Aug 2006
    Beans
    19

    Re: HowTo: Rip DVD audio to mp3 or ogg

    I have converted mp3 to cda and the cd pops and skips when i burn with nero on linux. The dvd is protected. Is this the reason why the music skips

  9. #9
    Join Date
    Dec 2007
    Beans
    4

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Thanks for the find. I've spent countless hours and at least 5 today on my old 56k downloading different approches just to get a 4 sercond clip off a DVD to use as a message tone. After trying the hard way for so long it's ironic that it was this easy.

  10. #10
    Join Date
    Jan 2007
    Location
    /dev/random
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HowTo: Rip DVD audio to mp3 or ogg

    I tried this since I also want to extract a bit of audio from a DVD, but lsdvd fails with a long list of errors looking kinda like this:

    Code:
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:778 ***
    *** for pgc->cell_position_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:776 ***
    *** for pgc->program_map_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:777 ***
    *** for pgc->cell_playback_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:778 ***
    *** for pgc->cell_position_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:776 ***
    *** for pgc->program_map_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:777 ***
    *** for pgc->cell_playback_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:778 ***
    *** for pgc->cell_position_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:776 ***
    *** for pgc->program_map_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:777 ***
    *** for pgc->cell_playback_offset == 0 ***
    
    
    *** libdvdread: CHECK_VALUE failed in ifo_read.c:778 ***
    *** for pgc->cell_position_offset == 0 ***
    
    Can't open ifo 15!
    Same goes for when I try to transcode something. Long list of errors. Anyone know why this is so? I'm running Ubuntu Gutsy, latest Medibuntu and such.

    Thanks!
    Sturgeon's Law: Ninety percent of everything is crap.

Page 1 of 4 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •