LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   transcoding DVD to avi (https://www.linuxquestions.org/questions/linux-software-2/transcoding-dvd-to-avi-148092/)

PhaseSpace 02-19-2004 01:34 PM

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!

acid_kewpie 02-19-2004 01:40 PM

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

pavgater01 02-06-2009 04:07 AM

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.

H_TeXMeX_H 02-06-2009 06:14 AM

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

H_TeXMeX_H 05-10-2009 10:26 AM

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



All times are GMT -5. The time now is 07:18 PM.