X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ffmpeg-mts2ogg-custom;h=817d5d51ebb3580c8651a0af51fe53b90ec19d6c;hb=fd13b1f439d0a716682630e6b4778ca2d0b8cf5c;hp=363d1e64933a85f9eed7a6e53d9f19cb0af486c3;hpb=1468b929232370f0caab7865ba34234f3dae24b3;p=video-handling.git diff --git a/ffmpeg-mts2ogg-custom b/ffmpeg-mts2ogg-custom index 363d1e6..817d5d5 100755 --- a/ffmpeg-mts2ogg-custom +++ b/ffmpeg-mts2ogg-custom @@ -6,14 +6,15 @@ # contains a V8 video stream and and a Vorbis 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 ogg -acodec libvorbis -ab 256k -ar 44100 -ac 2 -vcodec libtheora -b 1400k -r 25 -s $RESOLUTION -threads 0 "$AVI_FILE" +$FFMPEG -i "$MTS_FILE" -f ogg -acodec libvorbis -ab 256k -ar 44100 -ac 2 -vcodec libtheora -b "$BITRATE" -r 25 -s $RESOLUTION -threads 0 "$AVI_FILE"