Convert avi/flv to mp4


# version 1

NAME=`echo "$FILE" | cut -d'.' -f1`
EXTENSION=`echo "$FILE" | cut -d'.' -f2`
ffmpeg -i $FILE -strict -2 -ar 22050 -vcodec libx264 $NAME.mp4

# versions 2 - untested
ffmpeg -i input.flv -c copy -copyts output.mp4

# convert from avi to mp4
ffmpeg -i file.avi -vcodec libx264 -vpre lossless_slow -crf 25 -acodec libfaac -threads 0 -t 60 output.mp4


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.