From 7a2ed8a85fbeb028412463b266fde98428c1ef95 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sat, 15 Jun 2013 01:13:11 +1000 Subject: [PATCH] Fixed hencode-recursive --- hencode-recursive | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 -- 2.39.2