LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-06-2009, 08:45 AM   #1
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
ffmpeg ripping dvd to xvid, suggestions on options to use ... ?


So I've done many rips of DVD .vob to Xvid .avi and then burned the resulting files to a DVD. This is mostly so I can make my movie collection more portable ... with a compression ratio of about 6:1 (1 dvd can hold 6 Xvid) that saves a lot of space in my luggage. These will play on portable players that support xvid.

Anyway, I use vobcopy to copy the vobs, and then use ffmpeg to encode them to avi. My question is: What are the best options to use. For the ffmpeg site I got that this is the typical way:

Code:
ffmpeg -i DVD_VIDEO1.vob -qscale 7 -vcodec libxvid -s 640x360 -r 23.976 -aspect 16:9 -ab 128k -ar 48000 -async 48000 -ac 2 -acodec libmp3lame -f avi -g 300 -bf 2 blues2.avi
Of course changing those parameters as necessary. I understand what all the above options mean.

But I also see in the ffmpeg FAQ that they recommend:
Code:
'-mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2', things to try: '-bf 2', '-flags qprd', '-flags mv0', '-flags skiprd'.
What do these options mean ? I've recently tried the first few, but they seem to cause unwanted artifacts in the resulting movie, flickering and twisting pixels especially in dark areas or uniformly colored areas. I think it's cause mostly by '-mbd rd' option. But I have no idea what any of these options mean and there seems to be no documentation for them. Anyone know what they might mean ?

Or, does anyone rip DVDs differently ? I've used mencoder for a while, but found that ffmpeg tends to give better results for some reason, the colors are brighter, the image less blurry, etc. Maybe it's just me ?
 
Old 06-11-2009, 04:17 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,535

Rep: Reputation: 100Reputation: 100
Quote:
Or, does anyone rip DVDs differently ? I've used mencoder for a while, but found that ffmpeg tends to give better results for some reason, the colors are brighter, the image less blurry, etc. Maybe it's just me ?
I use this... output is a DivX5 (not Xvid) .avi of about 1.2 GB for a 2 hour DVD that I think is of quite suffiecient quality - but I'm no quality freak. Maybe you can use some of these options (however, you already seem to be using more options than me anyway)

Code:
mencoder dvd://1 -alang en -o sw1.avi -oac mp3lame -lameopts vol=8 -ovc lavc -ffourcc DX50 -lavcopts
vcodec=mpeg4:aspect=1.78/1:vbitrate=1800:vrc_eq=tex:naq:ilme:trell:cbp:preme=1:keyint=132:mbd=1:qns=1:vme=4:dia=2 -noskip
 
Old 06-11-2009, 04:02 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
Thanks, that may come in handy. However I'm still mystified by what all those options mean ... some seem to be magical options ... like alakazam and the video comes out better ... or worse (as in my case). And I don't know the magic ...

I mean I do know in very general terms what some of the options may be referring to in terms of the processing going on, but I don't know what the numbers being given are and what they mean and when they might need to be used and when not to be used. They seem to cause artifacts in the video and I don't know why, shouldn't there be some contraindication ... like don't use this option if ... is true, or use this option if ...

Anything like that, or some type of easy to understand explanation of what's going on. If not, I guess it's fine too, I'll just keep using the basic options without magic, but was hoping the magic could work for me.

Last edited by H_TeXMeX_H; 06-11-2009 at 04:06 PM.
 
Old 07-13-2009, 12:14 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
It seems 'ffmpeg -h' will list a lot of the options and explanations. It's interesting because in this case 'ffmpeg -h' is more informative than 'man ffmpeg'.

Messing around a bit with mencoder I've gotten good results with something like:

Code:
mencoder file.rm -ovc lavc -ffourcc XVID -lavcopts vcodec=libxvid:vqscale=5:aspect=4/3:keyint=150:vmax_b_frames=2:vpass=1 -ofps 15 -oac mp3lame -lameopts abr:br=44 -o file.avi
Adjusted as necessary and with vpass=2 after running this one. I guess you can also output to /dev/null for the first pass. Well, it doesn't seem too hard to use mencoder either, so that's one option, but I still prefer ffmpeg.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ffmpeg xvid problem locazor Linux - Software 2 10-13-2008 05:25 AM
converting vob to xvid using ffmpeg schneidz Linux - Software 3 12-07-2006 04:03 PM
Using FFMPEG with Xvid and lame mashed Linux - Software 1 04-08-2006 12:42 PM
advanced Xvid options With ffmpeg mashed Linux - Software 0 04-08-2006 12:41 PM
burning divx/xvid to dvd for play on standalone dvd player blanny Linux - General 0 12-30-2005 10:29 PM

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

All times are GMT -5. The time now is 07:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration