video handling scripts reform: unique all file conversion script; renaming; old scrip...
[video-handling.git] / ffmpeg-all-mts2mp4-custom
diff --git a/ffmpeg-all-mts2mp4-custom b/ffmpeg-all-mts2mp4-custom
deleted file mode 100755 (executable)
index a11333a..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/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"
-
-#resolution=960x720    # HD
-resolution=800x600     # SD
-
-(
-IFS=$'\n'
-for filename in $(find "$root_path" -name '*.mts'); do
-       new_filename=$(dirname "$filename")/$(basename "$filename" .mts)_SD.mp4
-       rm "$new_filename"
-       ./ffmpeg-mts2mp4-custom "$filename" "$new_filename" $resolution 700k
-done
-)