]>
code.delx.au - transcoding/blob - hencode-recursive
3 if [ -z "$1" -o -z "$2" ]; then
4 echo "Usage: $0 sourcedir destdir"
8 sourcedir
="$(cd "$1" && pwd)"
9 destdir
="$(cd "$2" && pwd)"
12 find .
-type f |
while read infile
; do
13 if [ ! -r "$infile" ]; then
14 echo "Missing file $infile"
17 outfile
="${destdir}/$(echo "$infile" | sed 's/\.[a-zA-Z0-9]*$//').mp4"
18 if [ -e "$outfile" ]; then
19 echo "Skipping $infile"
22 mkdir
-p "$(dirname "$outfile")"
23 HandBrakeCLI
< /dev
/null \
26 --encopts cabac
=0:ref
=2:me
=umh
:bframes
=0:weightp
=0:8x8dct
=0:trellis
=0:subme
=6 \