Fix Chapter Encoding on Windows when muxing with mkvmerge

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.
This commit is contained in:
rlaphoenix 2023-12-03 15:04:58 +00:00
parent 308ddbd394
commit d94d6042b7
1 changed files with 1 additions and 1 deletions

View File

@ -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