HowTos/Video
From OpenZaurus
Here are some useful instructions about video encoding and playback avaliable from the pdaXrom site:
http://mail.pdaxrom.org/node/63
I have found the following page useful as well:
http://www.zeb.uklinux.net/encoding.html
Here is a script for playing mpegs/mp3s with mplayer (using the mad libs and the framebuffer) :
#!/bin/sh
mplayer -quiet -vo fbdev -ac mad -framedrop -fs $1
Here is the script I use for playing ogg/ogm files:
#!/bin/sh
mplayer -quiet -vo fbdev -framedrop -fs $1
Encoding and Playing Video for C7×0 Devices
Copied from http://openzaurus.org/wordpress/howto/encoding-and-playing-video-for-c7x0-devices/
May 4th, 2005 by XorA
UPDATED 06/07/2005
The golden version of mplayer for the c7×0 devices currently is mplayer-atty_1.1.5 as found in OE. You should build a copy of this or find someone that has it built.
To play videos optimally (at 30 fps with no drops on 400Mhz clamshells) they should be resized to 320×240 using DivX and mp3 (ogg is possible but mencoder doesnt do ogg). Here is the script I use to encode my videos.
#!/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=320:240,rotate=1 -oac mp3lame -o $OUTFILE mencoder "$@" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=300:vpass=2 \ -lameopts cbr:br=64:mode=3 -vf scale=320:240,rotate=1 -oac mp3lame -o $OUTFILE
Run this as encode blah-output.avi blah-input.avi, you will get a nicely resized and rotated DivX movie. I rotate on desktop as overlay on C7×0 is always in portrait and it wastes valuable CPU to rotate on the Z itself.
Recent changes to mplayer-atty mean you no longer need to switch out of X11/Opie in order to play videos. This means the playing command has got a lot simpler.
#! /bin/sh # next line depends on kernel version echo 1 >/sys/class/graphics/fb0/driver/w100fb/fastpllclk echo 1 >/sys/class/graphics/fb0/device/fastpllclk mplayer -vo w100 -ac mad -ao oss -framedrop -really-quiet -fs $@
I find this script will happilly play the movies I have resized at full speed on a C860 device.
There is a small bit of corruption on left hand side of my screen, Im not sure what causes this, but its hardly noticable.

