]> code.delx.au - transcoding/commitdiff
hencode support overriding --*-anamorphic
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 7 Oct 2018 22:26:31 +0000 (09:26 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 7 Oct 2018 22:26:31 +0000 (09:26 +1100)
hencode

diff --git a/hencode b/hencode
index 234608d20ff80271b5770274fe823603698dcadd..1d41cfb73088a6d15ec07a6eaca66edf675c98cb 100755 (executable)
--- a/hencode
+++ b/hencode
@@ -7,6 +7,7 @@ THIS_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)"
 PAL24FPS=0
 AUDIO_SELECT="--audio-lang-list eng"
 QUALITY="--quality 20"
+ANAMORPHIC="--loose-anamorphic"
 
 ARGS=( "$@" )
 for i in $(seq 0 "$(($# - 1))"); do
@@ -17,6 +18,9 @@ for i in $(seq 0 "$(($# - 1))"); do
         --audio|--audio-lang-list)
             AUDIO_SELECT=""
             ;;
+        --*-anamorphic)
+            ANAMORPHIC=""
+            ;;
         --pal24fps)
             PAL24FPS=1
             AENCODER="copy"
@@ -41,7 +45,7 @@ set -x
 HandBrakeCLI \
     --encoder x264 --x264-preset slow \
     $QUALITY \
-    --loose-anamorphic \
+    $ANAMORPHIC \
     --aencoder "${AENCODER:-fdk_aac}" --mixdown 7point1 --aq 3 \
     $AUDIO_SELECT \
     --subtitle scan --subtitle-forced \