skip data streams in chapter exports to avoid ffmpeg segfault

This commit is contained in:
Josh Hawkins 2026-05-23 07:39:29 -05:00
parent e9bc79d3b3
commit 1987c052ff

View File

@ -579,7 +579,7 @@ class RecordingExporter(threading.Thread):
else:
chapters_path = self._build_chapter_metadata_file(recordings)
chapter_args = (
f" -i {chapters_path} -map 0 -map_metadata 1" if chapters_path else ""
f" -i {chapters_path} -map 0 -dn -map_metadata 1" if chapters_path else ""
)
ffmpeg_cmd = (
f"{self.config.ffmpeg.ffmpeg_path} -hide_banner {ffmpeg_input}{chapter_args} -c copy -movflags +faststart"