Help - Search - Members - Calendar
Full Version: Your Best Video Settings For Sl-c3100?
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
vrejakti
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
CODE
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. smile.gif

Next, encoding:

mem_448x336.sh
CODE
#!/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. happy.gif
mikesapunk
Thanks for the advice, vrejakti!

I've been a little disappointed with pdaxrom's MPlayer playback capabilities. I downloaded the IceAge2 Divx5 (640x344) trailer from pocketmovies.net the other day. It played beautifully (and in full-screen) under Cacko ROM/Kino2, but pdaxrom's MPlayer completely choked on it, no matter what settings I used. I was stuck playing the nasty old 320x240 MPEG version.

So since then I've been looking for someone with a CXX00 Z to post optimal settings for both encoding AND playback.

I'll test these out on my C1000 and let you know how well they work. wink.gif

later,
-Mike
silencer51
Many people, including me, use the mplayer version from the Cacko ROM. Its much faster than the one in the pdaXrom feed... ;-)
vrejakti
As promised, here's a nice update for encoding anime and other small AVI files for playback on the Zaurus. This script sports easily accepting new resolutions on the commandline. Simply save it to your PC, then run it with:

For my default 4:3 resolution use:
./script INPUT.avi OUTPUT.avi

Enter your own resolution:
./script INPUT.avi OUTPUT.avi WIDTH HEIGHT

IE. ./script '[Eclipse]Cool Anime Episode [7u547]Number 3.avi' CA_ep3.avi 563 317

Hint: Use single quotes around really weird file names! Bash auto completion, "Tab" is your friend. happy.gif

I'll be posting this on the Zaurus Wiki in a bit. Enjoy early! happy.gif

CODE
#!/bin/sh

# Encoding anime and other small AVI
# files for playback on the Zaurus.
# Script by Vrejakti
# http://kane.servebeer.com

INFILE=$1
OUTFILE=$2
WIDTH=448
HEIGHT=336

if [ -n "$3" ]
then WIDTH=$3
fi
if [ -n "$4" ]
then HEIGHT=$4
fi

echo "Default resolution is: 448x336"
echo "Recommended 4:3  resolution is: 448x336"
echo "Recommended 16:9 resolution is: 563x317"
echo
echo "   Input: $1"
echo "  Output: $2"
echo "   Width: $WIDTH"
echo "  Height: $HEIGHT"
echo
echo "Is this correct?"

echo "Type \"8\" to begin encoding or \"NOT 8\" to exit: "
read answer
if [[ $answer == 8 ]]

then
mencoder "$INFILE" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=300:vpass=1 -lameopts cbr:br=64:mode=3 -vf scale=$WIDTH:$HEIGHT -oac mp3lame -o $OUTFILE
mencoder "$INFILE" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=300:vpass=2 -lameopts cbr:br=64:mode=3 -vf scale=$WIDTH:$HEIGHT -oac mp3lame -o $OUTFILE
echo "Converted file is $OUTFILE"
fi

if [ $answer != "8" ]
then echo "Encoding canceled!!!"
fi
Antikx
QUOTE(silencer51 @ Mar 25 2006, 11:19 AM)
Many people, including me, use the mplayer version from the Cacko ROM. Its  much faster than the one in the pdaXrom feed... ;-)
*

How do you install it? As simple as installing the IPK?
desertrat
QUOTE(Antikx @ Mar 31 2006, 11:18 PM)
How do you install it? As simple as installing the IPK?

Almost. According to this post the ipk installs all the files into /opt/QtPalmtop. As this is not in your $PATH you may want to create a suitable symlink:
CODE
ln -s /opt/QtPalmtop/bin/mplayer /usr/bin


-- cheers
vimes
QUOTE(desertrat @ Apr 1 2006, 03:15 AM)
QUOTE(Antikx @ Mar 31 2006, 11:18 PM)
How do you install it? As simple as installing the IPK?

Almost. According to this post the ipk installs all the files into /opt/QtPalmtop. As this is not in your $PATH you may want to create a suitable symlink:
CODE
ln -s /opt/QtPalmtop/bin/mplayer /usr/bin


-- cheers
*



Just for clarity's sake, which mplayer version are you using from the cacko feed (bvdd-iwmmxt, bvvd...) ?
Might be handy for other pdaxrom users if we to post a link to it here.

Thanks
Meanie
QUOTE(vimes @ Apr 1 2006, 08:56 PM)
QUOTE(desertrat @ Apr 1 2006, 03:15 AM)
QUOTE(Antikx @ Mar 31 2006, 11:18 PM)
How do you install it? As simple as installing the IPK?

Almost. According to this post the ipk installs all the files into /opt/QtPalmtop. As this is not in your $PATH you may want to create a suitable symlink:
CODE
ln -s /opt/QtPalmtop/bin/mplayer /usr/bin


-- cheers
*



Just for clarity's sake, which mplayer version are you using from the cacko feed (bvdd-iwmmxt, bvvd...) ?
Might be handy for other pdaxrom users if we to post a link to it here.

Thanks
*



are you sure it is faster?

the bvdd and iwmmxt support is what makes the mplayer that is on the cacko feed fast. it's actually the one that atty compiled.

now the new one in the pdaxrom feed also has bvdd and iwmmxt support compiled in and if you look at it closely, it uses the sources from atty.

someone should compare both version side by side ohmy.gif

latest from pdaXrom feed:
http://mail.pdaxrom.org/1.1.0beta2/Zaurus-...y2_armv5tel.ipk

cacko feed:
http://web.mol.ru/~zaurus/feed/mplayer-bvd...1.1.5-1_arm.ipk

here is the one from the cacko feed repackaged in pdaXrom format
http://zaurus.daemons.gr/menaie/pdaxrom/fe...-1_armv5tel.ipk
i renamed the binary mplayer2 so you can install both and compare smile.gif
vimes
You're *so* damned good Meanie smile.gif
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.