video handling scripts reform: unique all file conversion script; renaming; old scrip...
[video-handling.git] / ffmpeg-mts2mp4-custom
diff --git a/ffmpeg-mts2mp4-custom b/ffmpeg-mts2mp4-custom
deleted file mode 100755 (executable)
index 334407a..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-#
-# Calin-Andrei Burloiu, 2010, calin.burloiu@gmail.com
-#
-# This script converts an MTS file into an AVI file, which 
-# contains an H.264 video stream and and an MP3 audio stream.
-#
-
-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
-    echo "Error: No such: file $MTS_FILE"
-    exit 1
-fi
-
-$FFMPEG -i "$MTS_FILE" -f mp4 -acodec libmp3lame -ab 192k -ar 44100 -ac 2 -vcodec libx264 -vpre normal -b "$BITRATE" -r 25 -s "$RESOLUTION" -threads 0 "$AVI_FILE"
-