Author Topic: Divx Encoding For The Z  (Read 3939 times)

daemon1

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Divx Encoding For The Z
« on: June 21, 2005, 03:19:04 am »
<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: [Select]
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 -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 -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: [Select]
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....
« Last Edit: June 23, 2005, 08:40:20 pm by daemon1 »
C3000 - Debian EABI - Kernel 2.6.23 of Angstrom

bmsleight

  • Newbie
  • *
  • Posts: 28
    • View Profile
Divx Encoding For The Z
« Reply #1 on: June 23, 2005, 05:13:25 pm »
Quote
Code: [Select]
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....
[div align=\"right\"][a href=\"index.php?act=findpost&pid=85094\"][{POST_SNAPBACK}][/a][/div]

Code: [Select]
                       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

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • http://
Divx Encoding For The Z
« Reply #2 on: July 15, 2005, 08:59:37 am »
Here is my favorite

Code: [Select]
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

By the way I think that expand option is pretty much obligatory since most movies are in wide screen format (Othervice everything is distorted).
Zaurus SL-C3000 since 26th june 2005 with Tetsu kernel 18A and default Sharp Rom 1.01J
1 GB sd card (noname manufacturer).
1 GB sd card Sandisk
Etymotics ER-4P headphones
Wifi - Ambicom WL1100C
Motorola V3 -Razr

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Divx Encoding For The Z
« Reply #3 on: July 15, 2005, 02:00:08 pm »
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.
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

matrix200

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • http://
Divx Encoding For The Z
« Reply #4 on: July 16, 2005, 02:20:19 pm »
Cresho I am using mencoder on windows
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.
Zaurus SL-C3000 since 26th june 2005 with Tetsu kernel 18A and default Sharp Rom 1.01J
1 GB sd card (noname manufacturer).
1 GB sd card Sandisk
Etymotics ER-4P headphones
Wifi - Ambicom WL1100C
Motorola V3 -Razr