]> code.delx.au - transcoding/blobdiff - hencode
hencode: Remove pal25fps temporary file
[transcoding] / hencode
diff --git a/hencode b/hencode
index 7b1fa87b1734053a49241891e187664d55889d9b..c78ff2eeb936fea4b9ca029e392039c623d4e44e 100755 (executable)
--- a/hencode
+++ b/hencode
@@ -4,6 +4,8 @@ set -eu
 
 THIS_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)"
 
+PAL24FPS=0
+
 ARGS=( "$@" )
 for i in $(seq 0 "$(($# - 1))"); do
     case "${ARGS[$i]}" in
@@ -29,12 +31,14 @@ set -x
 HandBrakeCLI \
     --encoder x264 --x264-preset slow --quality 20 --loose-anamorphic \
     --aencoder "${AENCODER:-fdk_aac}" --mixdown 7point1 --aq 3 \
+    --audio-lang-list eng \
     --subtitle scan --subtitle-forced \
     --markers \
     "$@"
 
 
-if [ -n "$PAL24FPS" ]; then
+if [ "$PAL24FPS" -eq 1 ]; then
     mv "$OUTPUTFILE" "pal25fps $OUTPUTFILE"
     "${THIS_DIR}/fix-pal-speedup" "pal25fps $OUTPUTFILE" "$OUTPUTFILE"
+    rm "pal25fps $OUTPUTFILE"
 fi