Log in

View Full Version : Mkvtoolnix UTF-8 error


DeWTurk
27th February 2022, 11:52
https://cdn.discordapp.com/attachments/863336387553001492/947445662256082965/Screenshot_at_Feb_27_13-50-32.png

hello, it doesn't receive UTF-8 in the srt file when writing a video in its sub file. Same processes I don't get errors on windows. Macos is getting into trouble.

Liisachan
28th March 2022, 06:04
Some byte sequences are invalid as UTF-8, such as so-called "non minimal" ones. If you're 100% sure that your SRT is in UTF-8, it's somehow corrupted.

How to fix it: Let's say it has 200 lines to show. Save it as a new file and only leave the first 100 lines, and try to mux it. If the error is gone, the offending line is somewhere in 101-200. If the error is still there, the offending line is somewhere in 1-100. Repeat this "halving" procedure a few times and you can spot the offending line, and can fix it as you see fit.

FYI: afaik, mkvmerge can handle both UTF-8 with or without BOM, and also non-BMP codepoints.