OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: vrejakti on March 22, 2006, 08:53:28 pm
-
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.
-
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.
later,
-Mike
-
Many people, including me, use the mplayer version from the Cacko ROM. Its much faster than the one in the pdaXrom feed... ;-)
-
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.
I'll be posting this on the Zaurus Wiki in a bit. Enjoy early!
#!/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
-
Many people, including me, use the mplayer version from the Cacko ROM. Its much faster than the one in the pdaXrom feed... ;-)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=120214\"][{POST_SNAPBACK}][/a][/div]
How do you install it? As simple as installing the IPK?
-
How do you install it? As simple as installing the IPK?
Almost. According to this post (https://www.oesf.org/forums/index.php?showtopic=17268&view=findpost&p=111865) the ipk installs all the files into /opt/QtPalmtop. As this is not in your $PATH you may want to create a suitable symlink:
ln -s /opt/QtPalmtop/bin/mplayer /usr/bin
-- cheers
-
How do you install it? As simple as installing the IPK?
Almost. According to this post (https://www.oesf.org/forums/index.php?showtopic=17268&view=findpost&p=111865) the ipk installs all the files into /opt/QtPalmtop. As this is not in your $PATH you may want to create a suitable symlink:
ln -s /opt/QtPalmtop/bin/mplayer /usr/bin
-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121332\"][{POST_SNAPBACK}][/a][/div]
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
-
How do you install it? As simple as installing the IPK?
Almost. According to this post (https://www.oesf.org/forums/index.php?showtopic=17268&view=findpost&p=111865) the ipk installs all the files into /opt/QtPalmtop. As this is not in your $PATH you may want to create a suitable symlink:
ln -s /opt/QtPalmtop/bin/mplayer /usr/bin
-- cheers
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
(http://index.php?act=findpost&pid=121332\")
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
[div align=\"right\"][a href=\"index.php?act=findpost&pid=121355\"][{POST_SNAPBACK}][/a][/div]
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
latest from pdaXrom feed:
[a href=\"http://mail.pdaxrom.org/1.1.0beta2/Zaurus-C1000-C3100/feed/mplayer_1.0pre7try2_armv5tel.ipk]http://mail.pdaxrom.org/1.1.0beta2/Zaurus-...y2_armv5tel.ipk[/url]
cacko feed:
http://web.mol.ru/~zaurus/feed/mplayer-bvd...1.1.5-1_arm.ipk (http://web.mol.ru/~zaurus/feed/mplayer-bvdd-iwmmxt_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 (http://zaurus.daemons.gr/menaie/pdaxrom/feed/mplayer-bvdd-iwmmxt_1.1.5-1_armv5tel.ipk)
i renamed the binary mplayer2 so you can install both and compare
-
You're *so* damned good Meanie