From 77a45696db4e4221986fd9a158d854d094da7a40 Mon Sep 17 00:00:00 2001 From: Garrick Anders Lyng Date: Wed, 29 Jul 2026 12:43:46 -0700 Subject: [PATCH] Update split_ffmpeg.py for multi-stream support Added '-map 0' argument to the ffmpeg command string array. This ensures all streams from the input file are present in the output Added '-scodec copy' argument to the same. This ensures the output subtitles are not reencoded. This change is useful for splitting multi-episode files present on many TV show DVDs, especially for Anime, which has multiple language audio and subtitle streams. --- split_ffmpeg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/split_ffmpeg.py b/split_ffmpeg.py index 43e6f74..41b9e74 100755 --- a/split_ffmpeg.py +++ b/split_ffmpeg.py @@ -108,8 +108,10 @@ def convertChapters(chapters): print(chap) command = [ "ffmpeg", '-i', chap['origfile'], + '-map', '0', '-vcodec', 'copy', '-acodec', 'copy', + '-scodec', 'copy', '-ss', chap['start'], '-to', chap['end'], chap['outfile']]