-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Incorrect rendering of CEA608 captions #1975
Comments
It is probably scaleCue in TextTracks.js which is not being properly called. I'll try to look into it. |
I don't know CEA608 very well, but @TobbeEdgeware what is the meaning of this values?
with those values, the getVideoVisibleVideoSize function returns this... it seems the videoCaptionContainer has not the good aspect. So, according to me, the issue is not the scaleCue but rather the checkVideoSize : do you agree? |
@squarebracket could you, please, have a look to my PR? does it solve your issue? |
Oh, I see in the WebVTT spec that you're supposed to have |
@squarebracket could you, please, test with an older dash.js version? a version before imsc1.js integration....it's probably a cea608 issue.... |
@nicosang Regarding the aspect ratio, CEA-608 was designed as 80% for 4:3 aspect ratio, and it does not look good to extend to 80% for 16:9 content. The aspect ratio aspectRatio = 3.5 / 3.0; were heuristically chosen to look good, but may need to be changed. If there is another value that is better, please feel free to suggest a change. |
As I previously said, I'm not an expert of cea608. My question was to help me to understand the problem. So, I prefer to keep those values ;-). Thanks for your answer. |
@nicosang I see the tails chopped off on 2.5.0 as well. As far as lineHeight and linePadding. CEA608 doesn't carry padding information. The only line information it has is that it's a grid of 15 rows and 32 columns (inside that 80% window as @TobbeEdgeware mentioned). One interesting thing to note. The tails only seem to be cut off when there's two or more lines displayed at once. A single line, I can see the tails. Maybe there's something wonky with the rounding of the region size here. |
If I remember correctly, each line is its own region in order to be able to have lines which are not adjacent, without needing empty lines in between. One can probably tune these regions together with the fonts to make things look better and the formulas that @squarebracket points out is probably an important part of this. |
bug fix #1975 on cea608 subtitles rendering
Environment
Observed behaviour
Nightly now incorrectly renders the size of CEA608 captions when using the TTML renderer. For the CEA608 test stream, it renders correctly when at full size. However, opening the console cuts off the bottom of the captions div:
![screenshot from 2017-05-30 09-25-14](https://cloud.githubusercontent.com/assets/127774/26586034/f43ab5ae-451b-11e7-8fce-1c9f4b5a2d7b.png)
Having the console closed is obviously the normal use case, but I get much bigger problems with real-world captions:
![screenshot from 2017-05-30 09-31-20](https://cloud.githubusercontent.com/assets/127774/26586099/1f40e5ca-451c-11e7-91b7-12d84ef08324.png)
![screenshot from 2017-05-30 09-26-52](https://cloud.githubusercontent.com/assets/127774/26586098/1f3768f6-451c-11e7-978b-9ed260cb6818.png)
Captions seem to have enough space when viewing the stream in fullscreen:
![screenshot from 2017-05-30 09-46-18](https://cloud.githubusercontent.com/assets/127774/26586364/f52bb8b8-451c-11e7-8f15-ece5bcda2ed6.png)
Do I now need to manually set
fontSize
or something? Or is this just a bug in determining video size when not fullscreen?The text was updated successfully, but these errors were encountered: