Linux rip dvd --> mp3 (audio only)

From: CHYRON (DSMITHHFX)18 Jun 2016 12:41
To: ALL1 of 15
I got my TH dvd and I want to extract the audio. But I'm having trouble out of the gate with the css (I guess). I installed libdvdcss2 (and other related stuffs) but my pc still can't read it. Is there a super-easy way to get her done? :-&
From: ANT_THOMAS18 Jun 2016 13:36
To: CHYRON (DSMITHHFX) 2 of 15
A few options that could work

VLC - stream option and transcode to just audio
Handbrake
abcde
MakeMKV - this could get you a mkv rip of the whole dvd where it's much easier to then extract the audio using many programs (ffmpeg/avconv etc)
EDITED: 18 Jun 2016 13:39 by ANT_THOMAS
From: CHYRON (DSMITHHFX)18 Jun 2016 13:54
To: ANT_THOMAS 3 of 15
I was able to extract with ffmpeg
Code: 
ffmpeg -i /path/to/VOB -map 0:2 -f mp3 /path/to/output.mp3


But the audio is horribly scratchy. Think it's the file, or my sound card can't cope? It used the lame encoder (default for mp3, apparently).
 
Code: 
Stream mapping:
  Stream #0:2 -> #0:0 (pcm_s16be -> libmp3lame)
EDITED: 18 Jun 2016 13:56 by DSMITHHFX
From: ANT_THOMAS18 Jun 2016 14:00
To: CHYRON (DSMITHHFX) 4 of 15
It doesn't look like it, because there's no parameter set, but has there been a sample rate change in the conversion?

Sound card won't have anything to do with conversion, all CPU. I'd be very surprised if you're having issues playing an MP3.
From: CHYRON (DSMITHHFX)18 Jun 2016 14:13
To: ANT_THOMAS 5 of 15
VLc also worked, it doesn't have the scratchy, but playback is too fast. Weird.
From: CHYRON (DSMITHHFX)18 Jun 2016 14:17
To: ANT_THOMAS 6 of 15
Yeah there was a sample rate changed from 4800 --> 44,100. Trying it again in VLC at original rate.

Edit: nope, still skipping bits.
EDITED: 18 Jun 2016 14:30 by DSMITHHFX
From: ANT_THOMAS18 Jun 2016 14:26
To: CHYRON (DSMITHHFX) 7 of 15
Yeah, best to preserve the sample rate or else you get all sorts of odd sound issues.
From: CHYRON (DSMITHHFX)18 Jun 2016 14:31
To: ANT_THOMAS 8 of 15
Yeah, that didn't fix it. I think the speed is ok except it's skipping bits making it seem speeded up.
From: ANT_THOMAS18 Jun 2016 14:35
To: CHYRON (DSMITHHFX) 9 of 15
Doesn't skip or anything when just playing the DVD on the computer?

What DVD is it?
EDITED: 18 Jun 2016 14:35 by ANT_THOMAS
From: CHYRON (DSMITHHFX)18 Jun 2016 14:59
To: ANT_THOMAS 10 of 15
No it's not, but it's occured to me that the playback itself may induce the skipping, so I'm copying the vob to hdd to see if that fixes it.

Damn. Well it ripped 10x faster. Still skipping though. Must be a setting issue.
EDITED: 18 Jun 2016 15:09 by DSMITHHFX
From: CHYRON (DSMITHHFX)18 Jun 2016 16:01
To: ALL11 of 15
avidemux does either crackling or skipping, depending on settings.

 T_T
From: CHYRON (DSMITHHFX)20 Jun 2016 16:55
To: ALL12 of 15
OK I think I finally got this work:

Step 1 acidrip dvd tracks to avi (audio --> mp3). acidrip seems to be the only sw capable of reading the dvd on ubuntu, even with libdvdcss on board I can't even open it in a file manager.

Step 2 open avi in avidemux and copy-save audio to .mp3. It's a bit lo-res but doesn't have the crackling/skipping, so suitable for the tablet at least. Bonus: I can still watch the video, if I so choose (unlikely).
From: CHYRON (DSMITHHFX)20 Jun 2016 16:58
To: ALL13 of 15
I just want to add: FUCKING JESUS MOTHERFUCK THAT WAS HARD.
From: ANT_THOMAS20 Jun 2016 17:00
To: CHYRON (DSMITHHFX) 14 of 15
Definitely must be an easier way. Did you try Handbrake or MakeMKV?
From: CHYRON (DSMITHHFX)20 Jun 2016 17:10
To: ANT_THOMAS 15 of 15
Yeah, it should be easier. After >6-hours in, I'm taking whatever works.  :-O~~~

Handbrake isn't in the Ubuntu repos (guess I could add it), so I moved on to acidrip, which someone reckoned is the best thing anyway.

Weird thing is if I copy/save the raw audio from a copied 1G vob out of avidemux (it won't directly read the dvd, like everything else except acidrip), it comes with crackling/skipping on board (there are two tracks on the vob: an ac3 in 5.1, and a stereo pcm). acidrip doesn't even let you pick which track to use, apparently it guessed right.