#! /bin/sh if [ -z "$2" ]; then echo "Usage: $0 input_dir aid [options]" exit 1 fi input="$1" aid="$2" shift 2 transcode -i "$input" -x null,auto -g 0x0 -y null,ffmpeg -a "$aid" -m a"$aid".mp3 "$@" && exec avimerge -o output2.avi -i output.avi -p a"$aid".mp3 -f avi_comments.txt