mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-14 05:36:44 +08:00
_save_transcoded had no subtitle output path, so every stream was dropped whenever save_to re-encoded: both on the explicit format/codec/trim route and on the fallback out of _save_remuxed. Compatible subtitles survived a remux and vanished the moment anything forced a transcode. Subtitle streams are now carried through untouched, rebased onto the same trimmed timeline as the video and clipped to the trim window. There is no subtitle encoder binding in PyAV, so a stream the output container cannot store as-is is still dropped -- but named in a warning, matching what _save_remuxed already does rather than disappearing silently. The remux fallback warning no longer claims subtitles are dropped, because the transcode it hands off to now keeps the ones it can.