From: James Bunton Date: Fri, 14 Jun 2013 15:13:11 +0000 (+1000) Subject: Fixed hencode-recursive X-Git-Url: https://code.delx.au/transcoding/commitdiff_plain/7a2ed8a85fbeb028412463b266fde98428c1ef95?hp=4515ace8b9c4721c427a163b63341e8b2a5a374c Fixed hencode-recursive --- diff --git a/hencode-recursive b/hencode-recursive index 61967d3..8fd7314 100755 --- a/hencode-recursive +++ b/hencode-recursive @@ -9,8 +9,7 @@ sourcedir="$(cd "$1" && pwd)" destdir="$(cd "$2" && pwd)" cd "$sourcedir" -IFS=$(echo -en "\n") -for infile in $(find . -type f); do +find . -type f | while read infile; do if [ ! -r "$infile" ]; then echo "Missing file $infile" exit 1 @@ -21,12 +20,17 @@ for infile in $(find . -type f); do continue fi mkdir -p "$(dirname "$outfile")" - HandBrakeCLI \ - --preset Universal \ + HandBrakeCLI < /dev/null \ + --format mp4 \ + --encoder x264 \ + --encopts cabac=0:ref=2:me=umh:bframes=0:weightp=0:8x8dct=0:trellis=0:subme=6 \ + --markers \ --quality 21 \ --deinterlace \ --loose-anamorphic \ --crop 24:24:24:24 \ + --aencoder faac \ + --ab 160 \ --input "$infile" \ --output "$outfile" done