X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=ffmpeg-mts2avi-custom;h=232471c46e1ace6158907d1a63b7be0fd43f6549;hb=cf141e97f6aaf93699b07ec844f5143b260fbede;hp=6f3f649b3cd3f606456c6316e327180883e7b5ad;hpb=281d56d47f3a00acd7169852a63d3e45e895b7ff;p=video-handling.git diff --git a/ffmpeg-mts2avi-custom b/ffmpeg-mts2avi-custom index 6f3f649..232471c 100755 --- a/ffmpeg-mts2avi-custom +++ b/ffmpeg-mts2avi-custom @@ -6,14 +6,15 @@ # contains an H.264 video stream and and an MP3 audio stream. # -if test $# -ne 3; then - echo "Usage: $0 mts-file avi-file resolution" +if test $# -ne 4; then + echo "Usage: $0 mts-file avi-file resolution bitrate" exit 1 fi MTS_FILE="$1" AVI_FILE="$2" RESOLUTION="$3" +BITRATE="$4" FFMPEG=/usr/bin/ffmpeg if test ! -f "$MTS_FILE"; then @@ -21,5 +22,5 @@ if test ! -f "$MTS_FILE"; then exit 1 fi -$FFMPEG -i "$MTS_FILE" -f avi -acodec libmp3lame -ab 256k -ar 44100 -ac 2 -vcodec libx264 -vpre normal -b 1400k -r 30 -s $RESOLUTION -threads 0 "$AVI_FILE" +$FFMPEG -i "$MTS_FILE" -f avi -acodec libmp3lame -ab 256k -ar 44100 -ac 2 -vcodec libx264 -vpre normal -b "$BITRATE" -r 25 -s $RESOLUTION -threads 0 "$AVI_FILE"