X-Git-Url: https://code.delx.au/transcoding/blobdiff_plain/fe521bebe848bfaf3abcb7352a1aecfecaef391c:/batchtoh264.sh..876d303ce37a435a11bb8f317226cc2f09f0b40a:/batchencode.sh 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