From: Calin Burloiu Date: Fri, 10 Dec 2010 09:16:57 +0000 (+0200) Subject: scripts/video: ffmpeg-* updated X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=98d01c13c39b65bee9da965a0619b86c1e5815e2;p=cs-p2p-next.git scripts/video: ffmpeg-* updated --- diff --git a/scripts/video/ffmpeg-all-mts2avi b/scripts/video/ffmpeg-all-mts2avi index f238c21..ff10130 100755 --- a/scripts/video/ffmpeg-all-mts2avi +++ b/scripts/video/ffmpeg-all-mts2avi @@ -13,6 +13,8 @@ fi root_path=$1 -#for i in $(find $root_path -name "*.srt"); do - -#done +for i in $(find $root_path -name "*.mts"); do + #echo $(dirname $i)/$(basename $i .mts).avi + ./ffmpeg-mts2avi $i "$(dirname $i)/$(basename $i .mts).avi" + +done diff --git a/scripts/video/ffmpeg-mts2avi b/scripts/video/ffmpeg-mts2avi index 65e18fb..bcd63f0 100755 --- a/scripts/video/ffmpeg-mts2avi +++ b/scripts/video/ffmpeg-mts2avi @@ -13,11 +13,12 @@ fi MTS_FILE=$1 AVI_FILE=$2 +FFMPEG=/usr/bin/ffmpeg if test ! -f $MTS_FILE; then echo "Error: No such file $MTS_FILE" 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 -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"