Linux users are not left out! The Droid is great for Linux, because you don't have to run iTunes to make full use of your device (like you would with the iPhone).
Install ffmpeg and use the following code. It will take SourceVideo.avi and transcode to DroidVideo.mp4. I've used it with several different sources and works great.
Also, some VOB files have a black border running across the top and the bottom that you will want to crop (ffmpeg doesn't have autocrop). In this case, find out the size of the original video (through either gxine, VLC under "tools" section, or "mplayer FILE.VOB" on command line) and compare to output from "mplayer FILE.VOB -vf cropdetect". In most cases, cropping about 60 lines off top and bottom will work, can add "-croptop 60 -cropbottom 60".
You can get a smaller file with almost as good quality by lowering the bitrate from 2000 to something lower, such as 1000 by changing to "-b 1000k -maxrate 1000k"
The only time this gets complicated is when you are using a high definition file where the width is greater than 852 (standard DVD's are 720 and work fine with the above method). In this case, you need to do some manual work (ffmpeg cannot automatically downsize like handbrake can). You will have to insert a size value with the "-s" parameter (and must use even numbers!). Here are the guidelines:
Find out the size of the original video (through either gxine, VLC under "tools" section, or "mplayer FILE.VOB" on command line).
If file SMALLER than 852 x 480: Don't use -s
If file LARGER than 852 x 480:
Find aspect ratio of original video (width / height)
If <1.775 then:
Height 480
Width is 480 x original aspect ratio
If = 1.775 then "-s wvga" (example, 1920 x 1080)
If >1.775 then
Width is 852
Height is 852 / aspect ratio (example, 1920 x 800 is "-s 852x354)
ffmpeg is also available on Windows and MAC and should work fine there too, although most people were prefer a GUI method such as Handbrake.
Install ffmpeg and use the following code. It will take SourceVideo.avi and transcode to DroidVideo.mp4. I've used it with several different sources and works great.
If it complains that "deinterlace failed" then simply remove "-deinterlace".ffmpeg -i SourceVideo.avi -y -threads 0 -subq 6 -deinterlace -level 30 -f mp4 -acodec libfaac -ab 160k -ar 48000 -ac 2 -vcodec libx264 -b 2000k -maxrate 2000k -bufsize 2000kb -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -coder 0 -refs 2 -flags +loop -vol 256 -trellis 1 -me_method umh -async 1 DroidVideo.mp4
Also, some VOB files have a black border running across the top and the bottom that you will want to crop (ffmpeg doesn't have autocrop). In this case, find out the size of the original video (through either gxine, VLC under "tools" section, or "mplayer FILE.VOB" on command line) and compare to output from "mplayer FILE.VOB -vf cropdetect". In most cases, cropping about 60 lines off top and bottom will work, can add "-croptop 60 -cropbottom 60".
You can get a smaller file with almost as good quality by lowering the bitrate from 2000 to something lower, such as 1000 by changing to "-b 1000k -maxrate 1000k"
The only time this gets complicated is when you are using a high definition file where the width is greater than 852 (standard DVD's are 720 and work fine with the above method). In this case, you need to do some manual work (ffmpeg cannot automatically downsize like handbrake can). You will have to insert a size value with the "-s" parameter (and must use even numbers!). Here are the guidelines:
Find out the size of the original video (through either gxine, VLC under "tools" section, or "mplayer FILE.VOB" on command line).
If file SMALLER than 852 x 480: Don't use -s
If file LARGER than 852 x 480:
Find aspect ratio of original video (width / height)
If <1.775 then:
Height 480
Width is 480 x original aspect ratio
If = 1.775 then "-s wvga" (example, 1920 x 1080)
If >1.775 then
Width is 852
Height is 852 / aspect ratio (example, 1920 x 800 is "-s 852x354)
ffmpeg is also available on Windows and MAC and should work fine there too, although most people were prefer a GUI method such as Handbrake.
Upvote
0