#!/bin/bash # # this is a script, that uses mencoder/ffmpeg # this is free software # # AVI to FLV if [ -z "$1" ]; then echo "Usage: $0 input_file.avi" exit 1 fi INPUTFILE=$1 mencoder -ffourcc FLV1 -of lavf -oac mp3lame -lameopts aq=9:cbr:br=64:vol=2 -ovc lavc -lavcopts vcodec=flv:vbitrate=200:acodec=mp3:abitrate=56 -ofps 18 -srate 22050 ${INPUTFILE} -o ${INPUTFILE%avi}flv