#!/bin/bash #nathan jahnke wine 'C:\Program Files\anrichan\xvid_encraw.exe' -i "$1.avs" -bitrate 512 -pass1 "$1.stats" wine 'C:\Program Files\anrichan\xvid_encraw.exe' -i "$1.avs" -bitrate 512 -pass2 "$1.stats" -avi "$1v.avi" wine 'C:\Program Files\anrichan\ffmpeg.exe' -b 64 -ac 2 -acodec mp3 -y -i "$1v.avi" -vcodec copy -i "$1.avs" "$1.avi" if [ -n "$2" ] ; then if [ $2 == 1 ] ; then rm "$1v.mp4" "$1a.mp4" "$1.stats" fi fi exit 0