Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I remember reading a long time ago how you can rip the audio (music) from a DVD and convert it to a usable/readable format.

I can't find that article any more. Can anybody help me?

share|improve this question

4 Answers 4

Here's what you're looking for: Handbrake.

It's a fairly useful tool for what you're trying to do. To install, add the ppa ppa:stebbins/handbrake-releases to your software sources (here's how to do that) and install handbrake from the Software Center.

share|improve this answer
1  
It don't seem to have x64 version. If I try to install x32 -- I'm suggested to remove tons of x64 libs. –  Adobe Feb 16 '13 at 6:29
    
Sorry, but see the Handbrake FAQ: Handbrake can't extract only audio. –  Martin Schröder Oct 6 '13 at 15:49
    
@MartinSchröder yes, and no. If you get this, then you can export it using VLC or something. –  jrg Oct 6 '13 at 20:26

For a proper Ubuntu approach I'd suggest to have a look into ffmpeg (command line). Example:

ffmpeg -i infile.wmv -vn -acodec copy outfile.wma

Or, if you want an MP3 file:

ffmpeg -i infile.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 outfile.mp3

Also there is another PPA software called Gnac; it's a GNOME software that uses the Gstreamer media framework and has a GUI.

Launchpad PPA: https://launchpad.net/~gnac-team/+archive/ppa

sudo add-apt-repository ppa:gnac-team/ppa
sudo apt-get update
sudo apt-get install gnac
share|improve this answer
    
Use K3B to rip audios from DVD. Search on ubuntu software center, there you will find many apps regarding ripping audio/video data from dvds. –  Curious Apprentice Feb 16 '13 at 6:51
  1. Inspect DVD with following command

    pg@pipoTower: ~$ tcprobe -i /dev/sr0
    

    look for line where chapters is like following:

    [dvd_reader.c] DVD title 1/1: 17 chapter(s), 1 angle(s), title set 1
    
  2. Rip all titles to mp3 where for example {1..17} is the number of chapters of your dvd

    for i in {1..17};do 
      transcode -x null,dvd -y null,tcaud -i /dev/sr0 -T 1,$i,1 -a 0 -E 44100,16,2 --lame_preset medium -m ~/tmp/yourDestinationMp3File_chapter${i}.mp3;
    done
    

    For details of command:

    • -T title,chapter,angle (described by your tcprobe command in point 1.)
    • -a audioTrackNumber
    • -i inputDevice
    • --lampe_preset can be: medium, standard, extreme refer to man transcode for further details
share|improve this answer

Use VLC's "open media" menu option to open the DVD, set the title to the one you want (you may have to explore the DVD by actually starting to view it, to get the title number).

Then instead of telling VLC to play it, tell it to stream it to a file.

Works great - you may have to use audacity to trim the results, as VLC will go back to the menu after playing the title you selected... so you'll get the menu track on infinite repeat at the end of your file :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.