#!/bin/bash out=`pwd` cd $out if [ ! -s "$1" -o "$2" == "" ] then echo "usage: $0 [nuv-file] [showname]" exit fi mencoder $1 -nosound -ovc lavc -lavcopts vcodec=mpeg4 -vop expand=176:144,scale=176:-2 -o $out/$2.avi -ofps 12 mplayer -vo null -ao pcm -af resample=8000,volume=+4db:sc $1 ffmpeg3gp -i $out/$2.avi -i $out/audiodump.wav -b 48 -ac 1 -ab 12 -map 0.0 -map 1.0 $out/$2.3gp rm -rf $out/$2.avi $out/audiodump.wav