Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kodi 20: DVB subtitles position #20729

Closed
2 of 7 tasks
Dis90 opened this issue Dec 27, 2021 · 15 comments
Closed
2 of 7 tasks

Kodi 20: DVB subtitles position #20729

Dis90 opened this issue Dec 27, 2021 · 15 comments
Labels
Component: Subtitles Resolution: Fixed issue was resolved by a code change Triage: Confirmed issue has been reproduced by a team member v20 Nexus

Comments

@Dis90
Copy link

Dis90 commented Dec 27, 2021

Bug report

Describe the bug

Here is a clear and concise description of what the problem is:
Sometimes DVB subtitles aren't displayed correctly.

Both lines in example picture should be leveled to left. Instead second lines starts different position than first line. Kodi 19 and VLC displays subtitles correctly.

Expected Behavior

Here is a clear and concise description of what was expected to happen:

Actual Behavior

Possible Fix

To Reproduce

Steps to reproduce the behavior:

Debuglog

The debuglog can be found here:
kodi.log

Screenshots

Here are some links or screenshots to help explain the problem:

Kodi 19:
Kodi 19

Kodi 20:
Kodi 20

Additional context or screenshots (if appropriate)

Here is some additional context or explanation that might help:

Your Environment

Used Operating system:

  • Android

  • iOS

  • tvOS

  • Linux

  • OSX

  • Windows

  • Windows UWP

  • Operating system version/name:

  • Kodi version: 20

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

@xbmc-gh-bot xbmc-gh-bot bot added the Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it label Dec 27, 2021
@enen92
Copy link
Member

enen92 commented Dec 30, 2021

@Dis90 any chance you can provide a short video sample that illustrates the issue?

@Dis90
Copy link
Author

Dis90 commented Dec 30, 2021

Sure. Here's 5 min clip of same video used in screenshots. https://drive.google.com/file/d/1iK5SSIcwrE9AIbkZoRHoLrcOSr-MDNzM/view?usp=sharing

@enen92
Copy link
Member

enen92 commented Jan 2, 2022

@CastagnaIT maybe you can take a look at this? Should be an easy fix

@CastagnaIT
Copy link
Collaborator

CastagnaIT commented Jan 3, 2022

i have lost 3 hours without find nothing useful/wrong in code i have no idea

@enen92
Copy link
Member

enen92 commented Jan 3, 2022

I think I've come across a similar issue in the past when fixing/looking into Ass subtitles (old implementation). IIRC the source of the problem was that we were creating 2 different overlays (one per line).
I'll take a look when possible to check if I can find the root cause.

@CastagnaIT
Copy link
Collaborator

i have noticed that if put video in pause and you resize the window to the source res sub size (576x720 if i remember correctly) the text become correct
so i suspected something in the scale calculation i have tried change in different ways without success

@CastagnaIT
Copy link
Collaborator

CastagnaIT commented Jan 3, 2022

I have done other tests, i think to be close to the solution so the problem seem around the scale,
the text now seem aligned correctly also after resizing kodi window:
immagine
but now is not centred correctly and i do not understand where is the mistake
immagine

if you want try it this is my changes: CastagnaIT@80dd84f
maybe you see where i am wrong

in addition to the test file provided above suggest to test also with the PGS sample that you can find in the FTP directory:
/Samples_new/Subtitles/PGS/PGS_StretchingTest.mkv
this is good to verify that the subs are displayed centred correctly

@Dis90
Copy link
Author

Dis90 commented Jan 3, 2022

Looking your screenshot I think subtitles are in correct place. It is very common at least here in Finland that DVB subtitles are aligned to left instead of center.

Edit. in fact, I'm not sure about the subtitles for this channel...
Let me know if you need sample video of recording from different channel which I know for sure to have subtitles aligned to left.

@CastagnaIT
Copy link
Collaborator

i think to have found the solution
i will try to prepare a PR

@CastagnaIT CastagnaIT added Triage: Confirmed issue has been reproduced by a team member and removed Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it labels Jan 4, 2022
@enen92
Copy link
Member

enen92 commented Jan 5, 2022

Fixed by #20794

@enen92 enen92 closed this as completed Jan 5, 2022
@enen92 enen92 added the Resolution: Fixed issue was resolved by a code change label Jan 5, 2022
@Dis90
Copy link
Author

Dis90 commented Apr 3, 2022

@CastagnaIT I updated to latest Kodi 20 and this issue is happening again.

@Dis90
Copy link
Author

Dis90 commented Apr 8, 2022

@enen92 Sorry for bumping this but should I open new issue?

@enen92
Copy link
Member

enen92 commented Apr 8, 2022

@Dis90 is this a fallback from a recent subtitles PR (#21162) or is it still broken right after #20794 has been merged?
Maybe you can manage to check a previous build or move back before #21162 went in?

@Dis90
Copy link
Author

Dis90 commented Apr 8, 2022

@enen92 I tested with builds from here http://mirrors.kodi.tv/nightlies/osx/x86_64/master/
Subtitles are working correctly in kodi-20220325-4734091c-master-25035-x86_64.dmg but not in kodi-20220327-f0125d68-master-25058-x86_64.dmg So I'm pretty sure that PR #21162 is causing this problem.

@CastagnaIT
Copy link
Collaborator

CastagnaIT commented Apr 8, 2022

sorry i lost the message notification tag on hundreds of emails
your sample have 4/3 subtitles resolution on a 16/9 video resolution, that's why now doesn't work
maybe we should allow this "mix" use case to use ALIGN_VIDEO in some way

PS. reading DVB spec its a regular use case have a SD 4/3 sub on fullhd video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Subtitles Resolution: Fixed issue was resolved by a code change Triage: Confirmed issue has been reproduced by a team member v20 Nexus
Projects
None yet
Development

No branches or pull requests

3 participants