From 7ef39af81b81c86fde9263a10e2fdb58d589caf5 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 15 Apr 2026 21:00:59 +0100 Subject: [PATCH] Fix transcode-hevc hanging on files with attached pictures Map only the first video stream, all audio, and all subtitles instead of mapping everything. This avoids feeding cover art images through the libx265 encoder which caused hangs. Co-Authored-By: Claude Opus 4.6 --- scripts/transcode-hevc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/transcode-hevc.sh b/scripts/transcode-hevc.sh index 71aab78..2509386 100644 --- a/scripts/transcode-hevc.sh +++ b/scripts/transcode-hevc.sh @@ -229,7 +229,7 @@ while IFS= read -r -d '' file; do if "$FFMPEG" -nostdin -y \ -i "$file" \ - -map 0 \ + -map 0:v:0 -map 0:a -map 0:s? \ -c:v libx265 -crf "$CRF" -preset "$PRESET" \ -c:a copy \ -c:s copy \