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

Propagate STL vertical position to WebVTT #87

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

dlecorfec
Copy link
Contributor

It should work with both teletext (Max Number of Rows = 23) and in-vision (MNR=0..99) subtitles, but only tested on teletext subtitles (no-op if MNR == 0 to avoid zero division).
It propagates the STL VP to the WebVTT line attribute, as percentage, by diving the row number by the max number of rows.
For example, if VP = 22 in a teletext TTI, then percentage = int(22*100/23) = 95, thus it will output "line:95%" in the VTT file.

@asticode asticode merged commit 5214480 into asticode:master Jun 20, 2023
@asticode
Copy link
Owner

Thanks for the PR ❤️

Let me know if you need a tag 👍

@dlecorfec
Copy link
Contributor Author

Thanks! I'd like a little tag please :)

@asticode
Copy link
Owner

v0.25.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants