Troubles with showing .SRT subtitles
2 posters
Page 1 of 1
Troubles with showing .SRT subtitles
I've got an .MKV file. There are no subtitles in it. I've got an .SRT file with the proper subtitles. When I play this pair with the last versions of MPC-HC, I can see the wrong subtitles. For example:
It takes place despite of the correct .SRT file:
In the same time, when I play the same .MKV file in which I've embedded this .SRT (with MKVToolNix), everything is OK:
It seems to me that earlier versions of MPC-HC worked correctly.
It takes place despite of the correct .SRT file:
In the same time, when I play the same .MKV file in which I've embedded this .SRT (with MKVToolNix), everything is OK:
It seems to me that earlier versions of MPC-HC worked correctly.
vramor- Posts : 164
Join date : 2011-07-28
Re: Troubles with showing .SRT subtitles
Here it displays the subtitles the same in MPC-HC as it does in Notepad (and other text editors). The only strange thing is that every letter c is displayed as a ñ.
I can make it display correctly if I change the code page setting.
MPC-HC options > Subtitles > Default Style > change "DEFAULT (1)" to "RUSSIAN (204)".
Behavior is the same with old versions of MPC-HC.
The problem is in how the file was created. If the creator properly saved it with UTF-8 encoding, then it would be displayed correctly with default settings.
I can make it display correctly if I change the code page setting.
MPC-HC options > Subtitles > Default Style > change "DEFAULT (1)" to "RUSSIAN (204)".
Behavior is the same with old versions of MPC-HC.
The problem is in how the file was created. If the creator properly saved it with UTF-8 encoding, then it would be displayed correctly with default settings.
Re: Troubles with showing .SRT subtitles
You are right, the problem is in the creator inserted Cyrillic character "с" (hexadecimal=F1) instead of Latin "c" (hexadecimal=63). MPC-HC with its default style could not read anything farther when met F1. I did the replacement and the problem disappeared. BTW all the text editors show the content of this .srt file pseudo correctly because of the images F1 and 63 are identical. But why does MPC-HC stop when run into F1 and MKVToolNix works correctly?
vramor- Posts : 164
Join date : 2011-07-28
Re: Troubles with showing .SRT subtitles
The file lacks a header that specifies the correct code page. So the text editor will use the system default one. That is why it shows a different character on your Russian system than on my English Windows.
MKVToolNix probably converts the text to proper UTF-8. Although I suspect it still uses the Cyrillic C.
MKVToolNix probably converts the text to proper UTF-8. Although I suspect it still uses the Cyrillic C.
Re: Troubles with showing .SRT subtitles
My Windows is English as well, but Formats=Russian and Location=Russia in Control Panel >Region and Languages.
vramor- Posts : 164
Join date : 2011-07-28
Re: Troubles with showing .SRT subtitles
The Formats settings most likely affect the default code page.
Re: Troubles with showing .SRT subtitles
The Formats and Location settings do not play any role as well as some header. I created .srt file with two words in Latin and Cyrillic characters.
Everything's OK!
This trouble takes place only if Cyrillic "c" is placed in the middle of the word with Latin characters. This is passing with 10.6.9 and 10.7.0 KLCP versions. But! There is not this problem at all with 10.7.1 version! Thanks KLCP team!
P.S. I left the default settings for Perform preferred language configuration: Primary=Russian, Secondary=English, Tertiary=-
Everything's OK!
This trouble takes place only if Cyrillic "c" is placed in the middle of the word with Latin characters. This is passing with 10.6.9 and 10.7.0 KLCP versions. But! There is not this problem at all with 10.7.1 version! Thanks KLCP team!
P.S. I left the default settings for Perform preferred language configuration: Primary=Russian, Secondary=English, Tertiary=-
vramor- Posts : 164
Join date : 2011-07-28
Re: Troubles with showing .SRT subtitles
I am able to reproduce the square symbol now. It only happens when I use xy-VSFilter, not with the internal subtitle renderer of MPC-HC.
In addition to the character to be displayed as a square symbol, the next three characters that are supposed to follow are missing as well.
It seems to be a bug in the text parsing.
In addition to the character to be displayed as a square symbol, the next three characters that are supposed to follow are missing as well.
It seems to be a bug in the text parsing.
Re: Troubles with showing .SRT subtitles
This bug takes place only for 32-bit MPC 10.7.1 KLCP version as well. Everything's OK with MPC-HC64.
vramor- Posts : 164
Join date : 2011-07-28
Re: Troubles with showing .SRT subtitles
Only the 32-bit version of xy-VSFilter is used. Regular VSFilter is used for x64 for stability reasons.
After some more testing the problem only occurs if I save the file with ANSI/ASCII encoding. No problem when using UTF-8.
After some more testing the problem only occurs if I save the file with ANSI/ASCII encoding. No problem when using UTF-8.
Re: Troubles with showing .SRT subtitles
Now it would be the best to formulate the problem fairly. It seems to me the mistake appears when there are characters of two different code pages in the same word. Like Cyrillic and Latin "c" for example. Maybe it should be checked more carefully.
vramor- Posts : 164
Join date : 2011-07-28
Re: Troubles with showing .SRT subtitles
It will be fixed in next version.
For now, you can just save the files with UTF-8 or Unicode encoding to avoid the problem.
For now, you can just save the files with UTF-8 or Unicode encoding to avoid the problem.
Re: Troubles with showing .SRT subtitles
I tried to do it first of all. The result was "?" instead of Cyrillic "c" in the file
I don't know why the creator of .srt file did it with such weird character substitution. But this replacement brings to light this problem. For me the easiest solution is to replace Cyrillic "c" by Latin "c" with Notepad (Edit > copy "c" > Ctrl-H > paste > replace with Latin "c" etc.)
I don't know why the creator of .srt file did it with such weird character substitution. But this replacement brings to light this problem. For me the easiest solution is to replace Cyrillic "c" by Latin "c" with Notepad (Edit > copy "c" > Ctrl-H > paste > replace with Latin "c" etc.)
vramor- Posts : 164
Join date : 2011-07-28
Re: Troubles with showing .SRT subtitles
There is no such problem with KLCP 10.7.2 anymore! Thanks!
vramor- Posts : 164
Join date : 2011-07-28
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum