#!/bin/sh ffmpeg -i $1 -f flv `basename $1 .avi`.flv #### #!/bin/sh mencoder $1 -of lavf -ovc lavc \ -lavcopts vcodec=flv:vbitrate=150 \ -lavfopts i_certify_that_my_video_stream_does_not_use_b_frames \ -ofps 29.97 -oac mp3lame -srate 22050 \ -o `basename $1 .avi`.flv