Kodi Community Forum

Full Version: Fixing PGS subtitle bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

i am trying to fix a bug with PGS subtitles in 3D mode. I found the place where the bug happens but i don't understand the purpose of the modification of width or height of the subtitle overlay which is done only in 3D mode. (see  File: xbmc/cores/VideoPlayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp Line: 245ff)
When i comment this out all is going fine with PGS subtitles in 3D mode.

Can someone tell me the purpose of this code?


ps: i hope this is not again a double or cross post
(2021-07-06, 09:39)hugohuetzel Wrote: [ -> ]Hi,

i am trying to fix a bug with PGS subtitles in 3D mode. I found the place where the bug happens but i don't understand the purpose of the modification of width or height of the subtitle overlay which is done only in 3D mode. (see  File: xbmc/cores/VideoPlayer/DVDCodecs/Overlay/DVDOverlayCodecFFmpeg.cpp Line: 245ff)
When i comment this out all is going fine with PGS subtitles in 3D mode.

Can someone tell me the purpose of this code?


ps: i hope this is not again a double or cross post
The modification of width or height of the subtitle overlay in 3D mode (Line 245ff in DVDOverlayCodecFFmpeg.cpp) seems to be causing a bug with PGS subtitles. By commenting it out, the issue is resolved. The code likely adjusts the subtitle rendering for 3D content, but further investigation is needed to understand its exact purpose.
Hi! This is an old thread but how can I find this file?
It's part of the code base at the xbmc team github account xbmc repo, but unless you are in a position to compile/build Kodi yourself doesn't do you any good.  You can start with the wiki though if interested.

scott s.
.