Broken subtitles? How to fix it!
Posted: Mon Jan 28, 2013 3:23 am
Hello all
During the weekend I spotted that on my Panasonic TV for which UMS automatically adds black bars to fix Aspect Ratio, subtitles are not missing and overlays each other.
So I was digging and testing and found some changes from past.
It seems new MEncoder builds (tested on Windows) have different behavior from past.
Panasonic and other renderers are using "-vf softskip,expand=::::1:16/9:4" so bad AR is fixed automatically.
But it doesn't work anymore.
When I removed "16/9" part, subs were correct but it is needed for AR fix so it is not a solution.
Then I found out that when I put "softskip" from beginning to the end, subs were rendered correctly! Tested with embedded soft subs (SRT).
So tried external SRT one and another problem. Subs were displayed twice overlayed, one white without special chars and second one in yellow including special characters (diactrics).
Fix was changing ":1:" to ":0:". In past if someone wanted to render subs outside the screen(to the added black bars), it had to be enabled (OSD=1). Now it is opposite.
Have to say, only SOFT subs are affected and when "ASS/SSA subtitle styling" is enabled. PGS or VOBSUB worked without problem without any modifications.
Final working change was: "-vf expand=::::0:16/9:4,softskip"
If used in Renderer.conf, working change is:
I know that with some videos, when "expand" is used, picture will be sometimes corrupted. Because of that "softskip,expand=" is used in UMS code.
When I found this behavior, if I remember right, it doesn't worked when "softskip" was used at the end. I can't find what test files did this picture corruption so can't test if new command is OK or it will be better to use it on both sides of command line:
Hopefully someone will reproduce it. I am sure because in last few months some people wrote that subs are overlayed or doubled so same what I spotted now.
ExSport
EDIT:
It seems with latest MEncoder versions I am not able to reproduce scrambled picture when "softskip" is not used at the beginning so it should be enough to use it at the end of the line only
During the weekend I spotted that on my Panasonic TV for which UMS automatically adds black bars to fix Aspect Ratio, subtitles are not missing and overlays each other.
So I was digging and testing and found some changes from past.
It seems new MEncoder builds (tested on Windows) have different behavior from past.
Panasonic and other renderers are using "-vf softskip,expand=::::1:16/9:4" so bad AR is fixed automatically.
But it doesn't work anymore.
When I removed "16/9" part, subs were correct but it is needed for AR fix so it is not a solution.
Then I found out that when I put "softskip" from beginning to the end, subs were rendered correctly! Tested with embedded soft subs (SRT).
So tried external SRT one and another problem. Subs were displayed twice overlayed, one white without special chars and second one in yellow including special characters (diactrics).
Fix was changing ":1:" to ":0:". In past if someone wanted to render subs outside the screen(to the added black bars), it had to be enabled (OSD=1). Now it is opposite.
Have to say, only SOFT subs are affected and when "ASS/SSA subtitle styling" is enabled. PGS or VOBSUB worked without problem without any modifications.
Final working change was: "-vf expand=::::0:16/9:4,softskip"
If used in Renderer.conf, working change is:
Code: Select all
CustomMencoderOptions=-vf expand=::::0:16\/9:4,softskip
When I found this behavior, if I remember right, it doesn't worked when "softskip" was used at the end. I can't find what test files did this picture corruption so can't test if new command is OK or it will be better to use it on both sides of command line:
Code: Select all
CustomMencoderOptions=-vf softskip,expand=::::0:16\/9:4,softskip
ExSport
EDIT:
It seems with latest MEncoder versions I am not able to reproduce scrambled picture when "softskip" is not used at the beginning so it should be enough to use it at the end of the line only
