Author Topic: Divx Encoding For Z  (Read 2533 times)

daemon1

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
Divx Encoding For Z
« on: June 21, 2005, 03:14:23 am »
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 = 230MB down from 704MB... and the winner is...

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....
« Last Edit: June 21, 2005, 03:15:56 am by daemon1 »
C3000 - Debian EABI - Kernel 2.6.23 of Angstrom

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Divx Encoding For Z
« Reply #1 on: June 21, 2005, 06:58:24 pm »
I'm afraid I went the lame route and booted windows on my desktop PC, and used the windows media encoder with registry hacked to allow mp4 video/mp3 audio:

http://www.double.co.nz/zaurus/

Am still playing with best settings, but it works for me.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

someonehoi

  • Newbie
  • *
  • Posts: 40
    • View Profile
Divx Encoding For Z
« Reply #2 on: June 22, 2005, 01:36:20 pm »
Below are the sample of converted VGA movies.
Simply plays them on C3000 after used tetsu 18a kernel with bvdd iwxmmt ,mplayer 1.1.5 ,zplayer from atty.jp.
I can play them on C3000 smoothly,
I would like to know whether C1000/Cxxx can play it or not.
Please give some comments.THANKS.  


Anime[A] (Opening only)
http://popup8.tok2.com/home2/somekwanwa2/T...Water_nadia.wmv
Anime (Opening only)
http://popup8.tok2.com/home2/somekwanwa2/K...Unbalance02.wmv
TV Drama (opening only)
http://popup8.tok2.com/home2/somekwanwa2/anego8.wmv



I use Window Media Encoder,too.
I am using the same method from this tutorial.
http://www.double.co.nz/zaurus/
But I changed the settings that shows below.
Video:ISO MEPG-4 VideoV1,640x480,500Kbps,20 fps,
Sound:MPEG layer-3 Codec,[56kBit/s,24000Hz,Stereo]
 
Here are different porporties movies,
so each movie's convert time is variable.
I get the Movie properties from Media Player Classic->File->Properties->Details.

1.Anime[A]
Input:[rmvb,31MB,Movie Lenght:1min24s]
Audio: RealAudio COOK 44100Hz stereo
Video: RealVideo 4 640x480 24.00fps 615Kbps

Output:[wmv,5MB,Convert Time:1min30]
Audio: MPEG Audio Layer 3 24000Hz stereo 56Kbps
Video: MP4S 640x480 20.00fps 435Kbps

2.Anime
Input:[rmvb,88MB,Movie Lenght:25mins]
Audio: RealAudio COOK 44100Hz stereo
Video: RealVideo 4 640x480 30.00fps 408Kbps

Output:[wmv,86MB,Convert Time:20mins]
Audio: MPEG Audio Layer 3 24000Hz stereo 56Kbps
Video: MP4S 640x480 20.00fps 435Kbps


3.GAME Opening .MTV
Input:[avi,126MB,Movie Lenght 1min42s]
Audio: MPEG Audio 48000Hz stereo 128Kbps
Video: MPEG1 Video 800x600 29.97fps 10000Kbps

Output:[wmv,5.7MB,Convert Time :2mins]
Audio: MPEG Audio Layer 3 24000Hz stereo 56Kbps
Video: MP4S 640x480 20.00fps 474Kbps

4.Anime[C]
Input:[rmvb,160MB,Movie Lenght:45mins]
Audio: RealAudio COOK 22050Hz stereo
Video: RealVideo 4 640x360 30.00fps 440Kbps

Output:[wmv,157MB,Convert Time:30mins]
Audio: MPEG Audio Layer 3 24000Hz stereo 56Kbps
Video: MP4S 640x360 20.00fps 435Kbps

5.TV Drama
Input:[rmvb,236MB,Movie Lenght:46mins32s]
Audio: RealAudio COOK 44100Hz stereo
Video: RealVideo 4 704x396 29.97fps 637Kbps

Output:[wmv,165MB,Convert Time:45mins]
Audio: MPEG Audio Layer 3 24000Hz stereo 56Kbps
Video: MP4S 640x360 20.00fps 435Kbps
« Last Edit: June 22, 2005, 01:49:08 pm by someonehoi »
SL-C3000 Sharp ROM + PdaXrom 1.1.0beta1 + KDE Lite with Dual Boot on Hdd4.