From 876d303ce37a435a11bb8f317226cc2f09f0b40a Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sun, 16 Mar 2008 22:48:09 +1100 Subject: [PATCH] Batch encoder supports different encoders --- batchtoh264.sh => batchencode.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename batchtoh264.sh => batchencode.sh (83%) diff --git a/batchtoh264.sh b/batchencode.sh similarity index 83% rename from batchtoh264.sh rename to batchencode.sh index 659d375..2e849df 100755 --- a/batchtoh264.sh +++ b/batchencode.sh @@ -12,9 +12,10 @@ # 1x02.avi dvd://1 --dvd DISC2 -input="$1" +encoder="$1" +input="$2" if [ -z "$input" ]; then - echo "Usage: $0 inputdesc" + echo "Usage: $0 toh264.py inputdesc" exit 1 fi @@ -26,6 +27,6 @@ tail -n +2 "$input" | while read line; do out=$(echo "$line" | cut -d ' ' -f 1) in=$(echo "$line" | cut -d ' ' -f 2) specopts=$(echo "$line" | cut -d ' ' -f 3) - nice -n 10 toh264.py $options $specopts "$in" "$out" + nice -n 10 "$encoder" $options $specopts "$in" "$out" done -- 2.39.2