]> code.delx.au - transcoding/blobdiff - batchencode.sh
Batch encoder supports different encoders
[transcoding] / batchencode.sh
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