Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: HowTo: Rip DVD audio to mp3 or ogg

  1. #11
    Join Date
    Sep 2007
    Beans
    102

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Hi, sorry but I dont get it. When I run the command: lsdvd it tells me:

    Disc Title: DVDVOLUME
    Title: 01, Length: 02:40:08.240 Chapters: 27, Cells: 27, Audio streams: 03, Subpictures: 01

    Longest track: 01


    ok, fine. but how do I have to fill a and b now if I want the hole DVD as mp3? or better every chappter as own track

    thx for help
    cu

  2. #12
    Join Date
    May 2006
    Location
    NL
    Beans
    31
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: HowTo: Rip DVD audio to mp3 or ogg

    I made a little bash script for ripping audio from dvd..

    Fill in the approriate tile, totaltracks and the source.

    Code:
    #!/bin/bash
    
    export src=/media/cdrom0
    export totaltracks=18
    export title=02
    
    
    export tracks=1
    
    until [ $tracks -gt  $totaltracks ]; do
    transcode -i $src -x dvd -T $title,$tracks,1 -a 0 -y raw -b 192 -m track-$tracks.mp3
    let tracks+=1
    done

  3. #13
    Join Date
    Mar 2007
    Beans
    49

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Quote Originally Posted by isecore View Post
    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!


    Can you confirm that you have the proper video codec installed and can actually play this dvd?

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

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Quote Originally Posted by jimbojones View Post
    Can you confirm that you have the proper video codec installed and can actually play this dvd?
    If by this you mean can I play a dvd in regular old Totem? Then the answer is no. I've never been able to do that. Never under Edgy, Feisty or Gutsy, and right now Hardy won't do it either.

    I've played my DVD's through VLC and that works fine, but I do know that VLC is a bit special.
    Sturgeon's Law: Ninety percent of everything is crap.

  5. #15
    Join Date
    Mar 2008
    Beans
    24

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Quote Originally Posted by isecore View Post
    If by this you mean can I play a dvd in regular old Totem? Then the answer is no. I've never been able to do that. Never under Edgy, Feisty or Gutsy, and right now Hardy won't do it either.

    I've played my DVD's through VLC and that works fine, but I do know that VLC is a bit special.
    I"m getting the same error; the dvd plays the menu just fine but when you choose 'play all' or select individual episodes, it just sits there.

    Pressing the 'pause' button/key allows you to see that the movie is playing- the time code is updating- but nothing is sent to either the screen or the audio.

  6. #16
    Join Date
    Nov 2008
    Beans
    13

    Re: HowTo: Rip DVD audio to mp3 or ogg

    When I try to rip the entire audio from a DVD to an mp3 I am using

    transcode -i /dev/dvd -x dvd -T 1,-1 -a 0 -y raw -m track-a.mp3
    It works just fine until it gets to 1:25:29 and I get the following error.


    Adding a new RIFF chunk: 32976], 95.87 fps, EMT: 1:25:29, ( 0| 0| 4)
    Internal error in avilib - redefine NR_IXNN_CHUNKS
    [avilib dump] cur_std_idx=32 NR_IXNN_CHUNKS=32POS=63753278968 towrite=549184
    [transcode] warning : error encoding video frame
    Segmentation fault00000-122977], 95.87 fps, EMT: 1:25:29, ( 0| 0| 4)
    It produces a usable mp3 that will play perfectly except it ends at 1:25:29. It is doing this on 3 different DVD's at the exact same time and they are all longer than that. What could be causing this?

  7. #17
    Join Date
    Apr 2007
    Location
    Connecticut, U.S.A.
    Beans
    173
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Cool thread.

    Does this work no matter what protections are used on DVDs?

  8. #18
    Join Date
    Aug 2006
    Beans
    36

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Thanks for the tutorial! I used it to rip some audio tracks from Babylon 5 episodes to listen to at work on my first-gen iPod Nano.

    One thing I noticed about the tracks, however: While the tracks play perfectly on my iPod, they don't have any time info. Instead of running from 0:00 to 45:00 (or thereabouts), it goes from 0:00 to -0:00, and the progress bar doesn't change. More importantly, I can't pause and resume tracks. Instead, if I pause, I have to restart from the beginning, which isn't fun when the track is 45 minutes long. Any suggestions to fix this?
    Last edited by gtmaneki; December 12th, 2008 at 01:10 AM.

  9. #19
    Join Date
    Apr 2005
    Beans
    432
    Distro
    Ubuntu

    Re: HowTo: Rip DVD audio to mp3 or ogg

    Quote Originally Posted by supertux View Post
    I made a little bash script for ripping audio from dvd..

    Fill in the approriate tile, totaltracks and the source.

    Code:
    #!/bin/bash
    
    export src=/media/cdrom0
    export totaltracks=18
    export title=02
    
    
    export tracks=1
    
    until [ $tracks -gt  $totaltracks ]; do
    transcode -i $src -x dvd -T $title,$tracks,1 -a 0 -y raw -b 192 -m track-$tracks.mp3
    let tracks+=1
    done
    This script works very well. Just used it on a couple of concert DVDs. It also gives you the ability to change the bitrate. The OP's post gives you 128kbps mp3s, but with this script you can go higher if you like.

  10. #20
    Join Date
    Aug 2006
    Beans
    36

    Re: HowTo: Rip DVD audio to mp3 or ogg

    I straightened out my problem. I was using transcode with the "-T 1,-1" setting to convert an entire track to an MP3. When I encode like this, the time info is messed up on my iPod. However, when I specify individual chapters in a title, for example "-T 1,1,1", there is no problem.

    Of course, when I'm dealing with a DVD containing 4 titles and each title has 6 chapters, that makes for a lot of typing. So I modified the excellent script supertux provided.

    Here is what I used to encode Babylon 5, Season 1, Disk 2. Titles 1-4 contain episodes 5-8, and each title has 6 chapters.

    Code:
    #!/bin/bash
    
    src=/media/cdrom0
    
    title=1 #Set to number of first title track
    total_titles=4 #set to maximum number of title tracks
    total_chapters=6 #set to maximum number of chapters
    season=1 #set to season number
    audio_track=0 #set to 0 for English, other number for commentaries/other languages
    
    until [ $title -gt $total_titles ]; do
    
    chapter=1 #start at chapter 1
    let episode="title + 4 " #set episode number
    
    until [ $chapter -gt $total_chapters ]; do
    transcode -i $src -x dvd -T $title,$chapter,1 -a $audio_track -y raw -b 192 -m b5_s${season}_e${episode}_c${chapter}.mp3
    #converts DVD audio to MP3
    
    let chapter+=1 #increment chapter
    done
    
    let title+=1 #increment title
    done
    This gives me a series of MP3 files specifying the series, episode, and chapter numbers. For example, "b5_s1_e4_c1.mp3" stands for "Babylon 5, Season 1, Episode 4, Chapter 1."
    Last edited by gtmaneki; December 18th, 2008 at 11:57 PM.

Page 2 of 4 FirstFirst 1234 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
  •