Help - Search - Members - Calendar
Full Version: Divx Encoding For The Z
OESF Forums > Distros, Development, and Model Specific Forums > Model Specific Forums > C1000/3x00 General discussions
daemon1
<accidently posted into general discussion area, but wanted it in here>
hi everyone,

been trying for the last 2 days to find the best encoding and resolution for the zaurus to play divx's nicely...
(this has been done on a c3000)

firstly you need to use tetsu 18a kernel with bvdd iwxmmt and mplayer 1.1.5 from atty.jp

I've tried to sqeeze movies down the smallest possible size whilest having an acceptible quality. in my trials ive tried the following on the same divx.

CODE
mencoder -cache 4000 -vf scale,expand=0:-60 -zoom -xy 320 -ffourcc XVID -oac lavc -lavcopts acodec=mp2:abitrate=48 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=448 -ofps 25 -sws 2 ./input.avi -o ./output.avi

Output.avi = 233507436bytes small widescreen
"mencoder <Input> -vf dsize=640:480,scale=320:240,expand=0:-60  -sws 2 -o Output2.avi -oac mp3lame -lameopts preset=96:mode=0:vol=10 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:vbitrate=200:autoaspect
-ofps 23.976"

"mencoder <Input> -vf dsize=640:272,scale=320:136,expand=0:-104 -sws 2 -o Output1.avi -oac mp3lame -lameopts preset=96:mode=0:vol=10 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:vbitrate=200:autoaspect
-ofps 23.976"

mencoder xxxxi -vf scale,expand=0:-60  -zoom -xy 320 -sws 2 -o Output3.avi -oac mp3lame -lameopts preset=96:mode=0:vol=10 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:vbitrate=200:autoaspect

yyyy64.avi =  169408660bytes
mencoder xxxx -oac copy -srate 24000 -vop scale=320:240 -o yyyy.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=64 -ofps 20 -sws 2

yyyy96.avi
mencoder xxxx -oac copy -srate 24000 -vop scale=320:240 -o yyyy.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=96 -ofps 20 -sws 2

Output2.avi - no lame
mencoder xxxxx -vf dsize=640:480,scale=320:240,expand=0:-104 -sws 2 -o Output4.avi -oac copy -srate 24000 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:vbitrate=200:autoaspect  

mencoder xxxxx -vf dsize=640:480,scale=320:240,expand=0:-60 -sws 2 -o Output5.avi -oac copy -srate 24000 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:vbitrate=200:autoaspect

with lame
mencoder xxxxx -vf dsize=640:480,scale=320:240,expand=0:-104 -sws 2 -o Output6.avi -oac mp3lame -lameopts preset=96:mode=0:vol=10 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:vbitrate=200:autoaspect

best one??
mencoder xxxx -vf scale,expand=0:-60  -zoom -xy 320 -sws 2 -o Output7.avi -oac mp3lame -lameopts preset=96:mode=0:vol=10 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:vbitrate=200:autoaspect

mencoder xxxxx -vf scale,expand=0:-60 -zoom -xy 320 -sws 2 -o Output8.avi -oac mp3lame -lameopts preset=96:mode=0:vol=10 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=96



this will work???
mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=640:480 -o output9.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=96 -ofps 20 -sws 2

mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output10.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=96 -ofps 20 -sws 2


tries...
mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output11.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vbitrate=96 -ofps 20 -sws 2

mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output12.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:vbitrate=96 -ofps 20 -sws 2

mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output13.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:vbitrate=96 -ofps 20 -sws 2

mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output14.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:vbitrate=96 -ofps 20 -sws 2

mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output15.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:vbitrate=96 -ofps 20 -sws 2

mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output16.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:mbd=2:trell:cmp=3:subcmp=3:mbcmp=3:vbitrate=96 -ofps 20 -sws 2

mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output17.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vbitrate=200 -ofps 20 -sws 2


along the way found a weird thing, the :autoaspect breaks bvdd and doesnt play any avi anymore... reboot is needed to fix the problem...

to play the movie you need to add "-vm -vo bvdd -fs output.avi" either manually in terminal or in kino2 or zplayer options.

anyway after painstakingly encoding all the options above... found the best one, which makes the movie full screen, sound in sync, good clear resolution and an acceptable size = 200MB down from 704MB... and the winner is...

<updated the post - found a better encoding to make the files even smaller - doesnt use lame for audio>
CODE
mencoder xxxx -oac copy -srate 24000 -vop scale=320:240 -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vbitrate=100 -ofps 20 -sws 2 -o xxxxxx.avi


try it with your movies and let us know how it goes.... smile.gif
bmsleight
QUOTE(daemon1 @ Jun 21 2005, 07:19 AM)
CODE
mencoder xxxx -oac mp3lame -lameopts preset=96:mode=0:vol=10 -srate 24000 -vop scale=320:240 -o output17.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:v4mv:vbitrate=200 -ofps 20 -sws 2


try it with your movies and let us know how it goes.... smile.gif
*


CODE
                       mencoder -cache 4000 -vf scale,expand=0:-60 -zoom -xy 320 -ffourcc XVID        
                               -oac lavc -lavcopts acodec=mp2:abitrate=48  -ovc lavc  -lavcopts  
                               vcodec=mpeg4:vhq:vbitrate=448 -ofps 25 -sws 2  input.avi
                              -o output.avi

(The expand=0,60 is optional to add black boarders.)
Personally I dont not like mp3, (patent encumbered). a vbitrate of 448 can be a little too much if you have other application running.

BMS
matrix200
Here is my favorite

CODE
mencoder -cache 4000 -vf scale,expand=0:-60 -zoom -xy 320 -ffourcc XVID -oac lavc -lavcopts acodec=mp3:abitrate=96 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=448 -ofps 25 -sws 2 input.avi -o output.avi


BMS yours is great but the sound is not too good expecially in movies where there is much music (MP2 codec is not that great for sound).
Except for that everything as yours smile.gif

By the way I think that expand option is pretty much obligatory since most movies are in wide screen format (Othervice everything is distorted).
Cresho
i been wanting to try this mencoder on the windows platfrom.

i do have a linux box on the side but its so limited since i dont have time to fidle with it and also i have the zaurus to fiddle for the moment.

is there a download for the mencoder in windows platform? I am pulling away slowly from windows but those copy right laws are catching up and soon we will be stuck in...who knows where.
matrix200
Cresho I am using mencoder on windows wink.gif
Just go to to http://www.mplayerhq.hu/homepage/design7/dload.html
and select windows downloads.
Don't forget to download the codecs pack.
Put all the codecs from the file into codecs folder of where you extracted the mplayer stuff.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.