#!/bin/sh
IN=$1
OUT=$(echo $1 | sed 's/^\(.*\)\.[a-zA-Z0-9]*$/\1/')
ffmpeg -i $IN -acodec mp3 -ac 1 -b:a 48k -vcodec libx264 -f mp4 -b:v 92k -bufsize 92k -s 426x240 $OUT\_lowres.mp4
ffmpeg -i $IN -acodec mp3 -b:a 64k -vcodec none $OUT.mp3