From 90bc7340217db3c595543b04f6c3a64d0cbb8156 Mon Sep 17 00:00:00 2001 From: Calin Burloiu Date: Fri, 10 Dec 2010 10:17:45 +0200 Subject: [PATCH] scripts/video: ffmpeg-* scrips updated --- scripts/video/ffmpeg-all-mts2avi | 18 ++++++++++++++++++ scripts/video/ffmpeg-mts2avi | 3 +-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 scripts/video/ffmpeg-all-mts2avi 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" -- 2.20.1