From d94d6042b715b1032eb16a19598808a0b16a45f4 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Sun, 3 Dec 2023 15:04:58 +0000 Subject: [PATCH] Fix Chapter Encoding on Windows when muxing with mkvmerge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On Windows it seems to default to some encoding other than UTF-8 (possibly UTF-16 or CP-1252) and since the chapter file is saved as UTF-8, it breaks characters outside typical range. Like ø, æ, and other stuff. --- devine/core/tracks/tracks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/tracks/tracks.py b/devine/core/tracks/tracks.py index 08b7761..948d499 100644 --- a/devine/core/tracks/tracks.py +++ b/devine/core/tracks/tracks.py @@ -376,7 +376,7 @@ class Tracks: random=get_random_bytes(16).hex() ) self.export_chapters(chapters_path) - cl.extend(["--chapters", str(chapters_path)]) + cl.extend(["--chapter-charset", "UTF-8", "--chapters", str(chapters_path)]) else: chapters_path = None