Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
andysmith1965
Streaming Star

Closed Caption/Subtitle support

Hi

I've implemented the closed caption support using WEBVTT format as the source for the subtitles. These display however, the positioning of the captions are inconsistent where some words appear on single lines and the text is right aligned.

I appreciate that the Roku parser doesn't recognise many html tags, but should it not obey the positioning and alignment commands?


Any help would be much appreciated.
Andy

Here is an example of the vtt file..

WEBVTT
[/font]

NOTE: MatID = 56966001001001   Title = *************                
NOTE Created by .sng webVTT Encoder module WriteVTT v2016_10_28-1


1
00:00:02.000 --> 00:00:07.000 line:77%  position:50% align:middle
<c.white>This programme contains strong</c>
<c.white>language and adult humour.</c>


2
00:00:32.560 --> 00:00:35.960 line:77%  position:50% align:middle
<c.green>Tonight on **********</c>
<c.green>********.</c>


3
00:00:36.000 --> 00:00:38.720 line:77%  position:50% align:middle
<c.green>Playing the numbers game,</c>
<c.green>it's Pete James.</c>
3 REPLIES 3
RokuBen
Community Moderator
Community Moderator

Re: Closed Caption/Subtitle support

The WebVTT parser does handle position, line, and align directives and try to use them in the painter code that draws those subtitles.  However, I think you've uncovered a bug in the interaction between the alignment and position values.  It looks like we're using the line and position values to set the top-left corner of the text area, and then centering the text in the box that's left there on the right side of the screen.

I'll see if we can get this fixed for a future release.  In the meantime, try removing the position tags and see if that gives you centered text like you want.
andysmith1965
Streaming Star

Re: Closed Caption/Subtitle support

Thanks for the response.

Is there any ETA for the fix (roughly)?
0 Kudos
MEMOM
Channel Surfer

Re: Closed Caption/Subtitle support

they are still not readable . they are SEE THRU

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.