LinuxQuestions.org
Review your favorite Linux distribution.
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 02-19-2004, 01:34 PM   #1
PhaseSpace
LQ Newbie
 
Registered: Dec 2003
Posts: 29

Rep: Reputation: 15
transcoding DVD to avi


Can anyone give me a good example command that you would use in mencoder to transcode a typical DVD to an avi file? Using say, the DivX or any popular sound codec.
(Something that will play under both windows and linux)

I find there are simply too many options to choose from and I have no idea what is good. If someone could give me a good command then I would have a basis to start from.

Having lots of problems! Any help would be greatly appreciated!
 
Old 02-19-2004, 01:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
try this...
http://acidrip.sf.net
written by yours truly.
you can clearly see the resultant commands being run when it is encoding.

but a basic command would be somethign like this:
Code:
mencoder dvd://1 -ovc lavc -oac mp3lame -lameopts abr:br=128 -lavcopts vbitrate=900:v4mv:vhq:vcodec=mpeg4 -vf pp=de,scale=480:-2 -o film.avi

Last edited by acid_kewpie; 02-19-2004 at 01:42 PM.
 
Old 02-06-2009, 04:07 AM   #3
pavgater01
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Using this program now: Pavtube DVD Ripper.
It converts DVD to AVI, DIVX Video, XVID Video, MPEG, WMV, MP4, MOV, 3GP, WMV, 3G2, WMA, MP3, etc.
Its advantage is that it's easy-to-use and cheap.
 
Old 02-06-2009, 06:14 AM   #4
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 would use ogmrip.

But you can also use vobcopy, then ffmpeg:

Code:
ffmpeg -i TWILIGHT_ZONE_VOL193-1.vob -b 900k -vcodec libxvid -s 640x480 -r 23.976 -aspect 4:3 -ab 128k -ar 48000 -async 48000 -ac 2 -acodec libmp3lame -threads 3 -f avi -g 300 -bf 2 camera.avi
(this is just an example I used recently)

see the documentation and adjust parameters as needed:
http://ffmpeg.org/ffmpeg-doc.html
 
Old 05-10-2009, 10:26 AM   #5
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
Actually this example seems to work better:

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
I did some benchmarks and more threads = less performance, this is encoding ~2000 frames of the same movie:

Code:
1
video:5617kB audio:1320kB global headers:0kB muxing overhead 2.033539%

real	0m24.604s
user	0m24.477s
sys	0m0.093s

2
video:5654kB audio:1328kB global headers:0kB muxing overhead 2.031979%

real	0m32.787s
user	0m27.553s
sys	0m9.261s

3
video:5591kB audio:1312kB global headers:0kB muxing overhead 2.032629%

real	0m42.083s
user	0m31.680s
sys	0m25.580s

4
video:5585kB audio:1310kB global headers:0kB muxing overhead 2.032150%

real	1m25.249s
user	0m51.304s
sys	1m31.498s
So using 1 thread is the fastest.

For better quality you can use the 2 pass encoding:

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 -g 300 -bf 2 -pass 1 -an -f rawvideo -y /dev/null
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 -pass 2 blues2.avi
 
  


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
AVI to DVD ptesone Linux - Software 9 07-21-2009 08:11 PM
AVI to DVD script bglnelissen Programming 5 10-27-2005 02:00 PM
avi to dvd converter hongman Linux - Software 2 02-28-2005 03:23 PM
DVD AVI rip to DVD mooreted Mandriva 4 02-20-2005 08:57 AM
AVI on dvd? benne Linux - Software 3 02-05-2005 11:25 AM

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

All times are GMT -5. The time now is 11:16 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