#!/bin/sh

# The dd part here is to keep mplayer happy. It does a read for 2048
# bytes and behaves badly if that first read returns partial data.

sid mencoder -really-quiet -oac pcm -ovc lavc -lavcopts vcodec=ffvhuff -vf scale=320:240,rotate=1 -o - "$@" | sid ffmpeg2theora -v4 -o - - 2> /dev/null | dd bs=8192 iflag=fullblock 2> /dev/null

