forked from DRMTalks/devine
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:
parent
308ddbd394
commit
d94d6042b7
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue