]> code.delx.au - transcoding/blobdiff - hencode
hencode: Remove pal25fps temporary file
[transcoding] / hencode
diff --git a/hencode b/hencode
index efe68aa748e8aea24f0ba22d544cccbb11fe4610..c78ff2eeb936fea4b9ca029e392039c623d4e44e 100755 (executable)
--- a/hencode
+++ b/hencode
@@ -31,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