Hey all, I'm still working out my ideal encode/playback setting for my SL-C3100, but what I've come up with is already awesome, and I figure this is a good topic to start for anyone wanting to turn their Zaurus into an iPod Video killer. ;-)
Under pdaXrom, I use this script for playback:
hardwareaccel.sh
mplayer -ac mad -ao oss -framedrop -really-quiet -fs -vo bvdd $1
Usage ./hardwareaccel.sh videofile
Credit to OpenZaurus for getting me started. The important thing here is the "-vo bvdd", if you're looking at a console "top" command you'll see 0% CPU usage for the X server, whereas with any other video out (-vo) option mplayer and X will be fighting for CPU. So, this enable hardware acceleration, meaning bigger video same quality.
Next, encoding:
mem_448x336.sh
#!/bin/sh
OUTFILE=$1
echo "Outputting to $OUTFILE"
shift
mencoder "$@" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=300:vpass=1 -lameopts cbr:br=64:mode=3 -vf scale=448:336 -oac mp3lame -o $OUTFILE
mencoder "$@" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=300:vpass=2 -lameopts cbr:br=64:mode=3 -vf scale=448:336 -oac mp3lame -o $OUTFILE
NOTE: Each mencoder command is ALL ONE LINE.
Usage
./mem_448x336.sh outputfile inputfile
Credit again to OpenZaurus for getting me started. I find 448x336 res (4:3 ratio) is nice, and full frame rates with 30% CPU to spare. Anyone care to offer their own tweaks? I'll be spending lots of time improving the above scrips - will post updated versions later.