]>
code.delx.au - transcoding/blob - batchencode.sh
3 # inputdesc specification:
6 # output_file\tinput_file\tspecific_options
7 # output_file\tinput_file\tspecific_options
10 # --filters pp=ci,crop=704:576:10:0,scale=768:576,denoise3d,harddup
11 # 1x01.avi dvd://1 --dvd DISC1
12 # 1x02.avi dvd://1 --dvd DISC2
17 if [ -z "$input" ]; then
18 echo "Usage: $0 toh264.py inputdesc"
22 # Read the general options
23 options
="$(head -n 1 "$input")"
25 # Read each file description
26 tail -n +2 "$input" |
while read line
; do
27 out
=$
(echo "$line" | cut
-d ' ' -f 1)
28 in=$
(echo "$line" | cut
-d ' ' -f 2)
29 specopts
=$
(echo "$line" | cut
-d ' ' -f 3)
30 nice
-n 10 "$encoder" $options $specopts "$in" "$out"