]> code.delx.au - transcoding/commitdiff
Batch encoder supports different encoders
authorJames Bunton <jamesbunton@fastmail.fm>
Sun, 16 Mar 2008 11:48:09 +0000 (22:48 +1100)
committerJames Bunton <jamesbunton@fastmail.fm>
Sun, 16 Mar 2008 11:48:09 +0000 (22:48 +1100)
batchencode.sh [moved from batchtoh264.sh with 83% similarity]

similarity index 83%
rename from batchtoh264.sh
rename to batchencode.sh
index 659d37574c227851b6aaae0a65823655365d2dea..2e849df66ba2f8746f1c76e995739d3ed372148c 100755 (executable)
 # 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