Mplayer
OpenWrt Software Image
For a few releases the NanoNote's OpenWrt firmware has been including a hardware-accelerated MPlayer, playing back up to 320x240 content at 30 FPS. Make sure your audio sample rate is 44100, everything else will need resampling which costs CPU cycles. Also never try to play back Theora video with surround-sound Vorbis audio stream. The NanoNote doesn't have the CPU power to decode them.
If you have ffmpeg2theora installed, just run this:
ffmpeg2theora original-video -channels 2 --samplerate 44100 -x 320 -y 240 --speedelvel 0 -o nanonote-video.ogv
If you prefer GUI tools, you can use Transmageddon to perform the video conversion: create a file called "ben-nanonote.xml" with the following contents:
<?xml version="1.0"?>
<device>
<make>Qi Hardware</make>
<model>Ben NanoNote</model>
<description>Profile for Ben NanoNote</description>
<author>
<name>Andrea Bolognani</name>
<email>eof@kiyuko.org</email>
</author>
<version>1.0</version>
<icon>file://nanonote.svg</icon>
<default>Normal</default>
<profile>
<name>Normal</name>
<container>application/ogg</container>
<extension>ogv</extension>
<audio>
<name>audio/x-vorbis</name>
<presets>
<preset>Quality Normal</preset>
</presets>
<channels>2</channels>
<samplerate>44100</samplerate>
</audio>
<video>
<name>video/x-theora</name>
<border>Y</border>
<passes>0</passes>
<pixelaspectratio>0/0</pixelaspectratio>
<presets>
<preset>Quality Normal</preset>
</presets>
<width>320</width>
<height>240</height>
<framerate>30</framerate>
</video>
</profile>
</device>
and copy it over to /usr/share/transmageddon/profiles. The transcoded files are saved to the ~/Videos directory.
Jlime
The version of mplayer in Jlime supports avi files. You can use this little script to transcode video (requires mencoder and ffmpeg):
#!/bin/sh #http://jlime.com/mw4/index.php/Howto_video_player EXPECTED_ARGS=1 E_BADARGS=65 if [ $# -ne $EXPECTED_ARGS ] then echo "Usage: `basename $0` original-video.avi" exit $E_BADARGS fi mencoder -o /tmp/000video-track.avi -ovc lavc -oac pcm -of rawvideo $1 # get the video track mencoder -o /tmp/000audio-track.wav -ovc lavc -oac mp3lame -of rawaudio $1 # get the audio track mencoder /tmp/000video-track.avi -srate 24000 -vf scale=160:120 -o /tmp/000video.avi -oac mp3lame -lameopts vbr=0:br=24:mode=3 -ovc xvid -xvidencopts bitrate=50 -ofps 7 -sws 2 # convert video ffmpeg -i /tmp/000audio-track.wav -acodec pcm_u8 -ac 1 -ar 8000 /tmp/000audio.wav # convert audio ffmpeg -i /tmp/000video.avi -i /tmp/000audio.wav -acodec copy -vcodec copy `echo $1|cut -f 1 -d .`.small.avi # merge video and sound rm /tmp/000video-track.avi rm /tmp/000audio-track.wav rm /tmp/000audio.wav rm /tmp/000video.avi
scp it to your nanonote, and enjoy! :)