LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2010, 10:23 AM   #1
kromberg
Member
 
Registered: Feb 2007
Location: Colorado
Distribution: FC6, FC7 x86_64
Posts: 218

Rep: Reputation: 30
Ripping High Quality DVDs


What is a good software package ( or arguments for ffmpeg or mencoder ) to rip DVDs in high quality?
 
Old 06-30-2010, 11:43 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I've used OGMRip for a while, and it produces great quality, if you want a GUI.

But, for the best quality I always rip with the CLI method. Basically, I use 'vobcopy -l' to rip the VOB, then I run ffmpeg to convert it to DIVX/XVID compatible, or whatever else you want.

The standard commands I use are:
Code:
ffmpeg -i input.mkv -vcodec libxvid -qscale 5 -s 640x272 -aspect 40:17 -r 23.976 -g 240 -bf 2 -acodec libmp3lame -ab 160k -ar 48000 -async 48000 -ac 2 -pass 1 -an -f rawvideo -y /dev/null
ffmpeg -i input.mkv -vcodec libxvid -qscale 5 -s 640x272 -aspect 40:17 -r 23.976 -g 240 -bf 2 -acodec libmp3lame -ab 160k -ar 48000 -async 48000 -ac 2 -pass 2 -f avi outlander-q5.avi
Modifying the various parameters as necessary.

I recently wrote a short encoding guide if you wanna look at it:
http://draconishinobi.50webs.com/linux/encoding.html

If you want x264, it is also on there, and try the presets I made, they are better than hq presets for sure.
 
Old 06-30-2010, 09:51 PM   #3
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
My 2 cents
Look at the man pages for mplayer and mencoder

Code:
mplayer dvd://1 -dumpstream -dumpfile out.vob
Will dump video no 1 on the dvd to out.vob

There are lots of options, here are some examples
2 pass encoding
Code:
#Checking the structure of the DVD (titles chapters)
#lsdvd
#crop detect
mplayer dvd://1 -vf cropdetect
#Two passes encoding
mencoder dvd://1 -ovc lavc -lavcopts \
vcodec=mpeg4:vpass=1 -oac copy -o /dev/null ;
mencoder dvd://1 -chapter -ovc lavc -lavcopts \ 
vcodec=mpeg4:mbd=2:trell:vpass=2  -oac copy -o output.avi
# transfering the movie into mpg4
ffmpeg -i title2.avi -y -target ntsc-dvd -sameq -aspect 16:9 finalmovie.mpg
# Creating the movie 
dvdauthor --title -o dvd -f finalmovie.mpg
# Creating the title
dvdauthor -o dvd -T
#making DVD structure 
mkisofs -dvd-video -o dvd.iso dvd/
#burning the movie
growisofs -dvd-compat -Z /dev/rcd0c=dvd.iso
Code:
mencoder filename -oac mp3lame -ovc xvid -xvidencopts pass=1 -vf scale=640:360 -o output.avi
An example using lame and xvid.

Code:
mencoder dvd://1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1800:vpass=1 -oac copy -o /dev/null ;
mencoder dvd://1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1800:mbd=2:trell:vpass=2  -oac copy -o output.avi
Another 2 pass example using lavc and copying the audio.

The options are great using mencoder.
http://en.linuxreviews.org/MPlayer
http://www.mplayerhq.hu/DOCS/HTML/en/index.html
http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.txt

look at ffmpeg, transcode, dvdrip, acidrip, k9copy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ripping DVDs glore2002 Slackware 13 10-09-2008 07:26 AM
ripping DVDs with k3b radiodee1 Debian 5 05-01-2007 05:09 AM
CD ripping quality gogogadgetearl Linux - Newbie 4 10-16-2005 01:25 AM
cd ripping: why is quality bad? fatblueduck Linux - Software 2 09-30-2005 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration