/convert.sh
#!/bin/sh

if [ -z "$1" -o -z "$2" ]; then
	echo "$0 <media file> <output file>"
	return 1
fi

ffmpeg -i $1 -f u8 -c pcm_u8 -ar 31250 $2