From: Calin Burloiu Date: Fri, 10 Dec 2010 08:17:45 +0000 (+0200) Subject: scripts/video: ffmpeg-* scrips updated X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=90bc7340217db3c595543b04f6c3a64d0cbb8156;p=cs-p2p-next.git scripts/video: ffmpeg-* scrips updated --- diff --git a/scripts/video/ffmpeg-all-mts2avi b/scripts/video/ffmpeg-all-mts2avi new file mode 100755 index 0000000..f238c21 --- /dev/null +++ b/scripts/video/ffmpeg-all-mts2avi @@ -0,0 +1,18 @@ +#!/bin/bash +# +# 2010, Calin-Andrei Burloiu, calin.burloiu@gmail.com +# +# This scripts converts all mts files to avi starting from a root directory +# recursively. The avi files are placed in the same directory as the +# original mts files. +# + +if [ $# -ne 1 ]; then + echo "usage: $0 root_path" +fi + +root_path=$1 + +#for i in $(find $root_path -name "*.srt"); do + +#done diff --git a/scripts/video/ffmpeg-mts2avi b/scripts/video/ffmpeg-mts2avi index b1b8ad1..65e18fb 100755 --- a/scripts/video/ffmpeg-mts2avi +++ b/scripts/video/ffmpeg-mts2avi @@ -19,6 +19,5 @@ if test ! -f $MTS_FILE; then exit 1 fi -# TODO: Establish the appropriate bitrates. -ffmpeg -i $MTS_FILE -f avi -acodec libmp3lame -ab 256k -ar 44100 -ac 2 -vcodec libx264 -vpre normal -b 1400k -r 30 -threads 0 $AVI_FILE +ffmpeg -i "$MTS_FILE" -f avi -acodec libmp3lame -ab 256k -ar 44100 -ac 2 -vcodec libx264 -vpre normal -b 1400k -r 30 -threads 0 "$AVI_FILE"