#!/bin/sh rm -f audio.wav audio.ogg video.ogg mkfifo audio.wav mplayer -ao pcm:fast:file=audio.wav -vo null -vc dummy -benchmark "$1" & oggenc -q 4 audio.wav & ffmpeg2theora --nosound -v 4 -o video.ogg "$1" wait rm -f audio.wav oggzmerge audio.ogg video.ogg -o "$1".ogg rm -f audio.ogg video.ogg