From: Razvan Deaconescu Date: Mon, 6 Dec 2010 09:50:36 +0000 (+0200) Subject: add handbrake conversion script X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=b3baa0418a5cbc24ceaa0e357cf170cda977d557;p=cs-p2p-next.git add handbrake conversion script --- diff --git a/scripts/video/handbrake-mts2avi b/scripts/video/handbrake-mts2avi new file mode 100755 index 0000000..d9e95bc --- /dev/null +++ b/scripts/video/handbrake-mts2avi @@ -0,0 +1,16 @@ +#!/bin/bash + +if test $# -ne 2; then + echo "Usage: $0 mts-file avi-file" + exit 1 +fi + +MTS_FILE=$1 +AVI_FILE=$2 + +if test ! -f $MTS_FILE; then + echo "Error: No such file $MTS_FILE" + exit 1 +fi + +HandBrakeCLI -i $MTS_FILE -o AVI_FILE