Your Digital Media Has Never Looked So Good

 
hugo_petrucci
Topic Author
Posts: 6
Joined: Mon Jan 21, 2013 10:36 am

HLS stream subtitles

Mon Jan 21, 2013 10:57 am

Im working with HLS HD streams via live channels .
Everythings works fine , outstanding my requirements ,
but i need to include a subtitle stream with the video and audio.
it is possible to use LIVE subtitles in HLS ?
these subtitles streams come along the audio and video , generally in DVB subtitle format.

ffmpeg takes this from original stream

Stream #0:12[0x580]: Video: h264 ([27][0][0][0] / 0x001B), 29.97 tbr, 90k tbn
Stream #0:13[0x581]: Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), s16, 384 kb/s
Stream #0:14[0xbc2](spa): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)

and convert audio and video smoothly to hls.

but many channels have no sense without subtitles.
maybe putting a first instance of ffmpeg in order to burn subtitles into original video stream ,
but this require more complex process and probably another machine to do this first.
 
hugo_petrucci
Topic Author
Posts: 6
Joined: Mon Jan 21, 2013 10:36 am

Re: HLS stream subtitles

Mon Jan 21, 2013 1:43 pm

interesting article :

http://www.overdigital.com/2011/12/27/h ... ould-care/

maybe implementation of HDS will be the answer to the subtitle quiz.

this is useful for impaired people.
 
RokuPatrick

Re: HLS stream subtitles

Mon Jan 21, 2013 5:50 pm

Hi Hugo,

We currently have support for subtitles on live and on-demand SmoothStreaming and on-demand HLS. This is all in SMPTE-TT format. We're looking at supporting 608-format closed captions for live HLS, but I don't have any info on potential timing for you at this time
 
hugo_petrucci
Topic Author
Posts: 6
Joined: Mon Jan 21, 2013 10:36 am

Re: HLS stream subtitles

Mon Jan 21, 2013 6:37 pm

ok. any clue to catch info about "support for subtitles on live and on-demand SmoothStreaming and on-demand HLS. This is all in SMPTE-TT format. " ?
 
bosborne
Posts: 141
Joined: Wed Jun 06, 2012 10:42 am

Re: HLS stream subtitles

Mon Jan 28, 2013 6:51 am

I'm looking for details on this as well.
 
bosborne
Posts: 141
Joined: Wed Jun 06, 2012 10:42 am

Re: HLS stream subtitles

Thu Feb 07, 2013 8:11 am

Has there been any update on this? Thanks
 
User avatar
RokuKevin
Roku Engineering
Posts: 796
Joined: Tue Sep 22, 2009 2:29 pm

Re: HLS stream subtitles

Thu Feb 07, 2013 11:41 am

In order to get closed captioning working, all you have to do is set the subtitleUrl content meta data parameter to the TTML url and turn on and off the captions using the new roVideoScreen method ShowSubtitle( Boolean enable).

--Kevin
 
bosborne
Posts: 141
Joined: Wed Jun 06, 2012 10:42 am

Re: HLS stream subtitles

Thu Feb 07, 2013 11:46 am

Okay, so we need to specify an external TTML file, and Roku doesn't support embedded TTML in Smooth or HLS?
 
hugo_petrucci
Topic Author
Posts: 6
Joined: Mon Jan 21, 2013 10:36 am

Re: HLS stream subtitles

Thu Feb 14, 2013 8:25 pm

ok. i solve this issue this a lot of processors. first decode to mpeg2 , then merge the dvb subs , then recode to h264 ,
works well , even with variable fps (crf=20) , with a final resolution of 850x480 (from 1280x720) in realtime , via an i7 6cores 3.4Ghz.
next week i post the data.
i test some decoders , works best with ffmpeg , but vlc is more stable chopping HLS.
ffmpeg 10.5 only (at least in centos 6.3 64bits), other versions do not work properly selecting streams from dvb multicast udp.

maybe i need to make another post : clues to select reverse-forward ?
on a simple m3u8 list with 8 segments , ever start at the oldest, giving no chance to point to the newest , or at least the subsequent.
theres may be an interesting point . the proccess of encoding takes 99% of processing , while chopping takes only 0.3%
so , with two (or more , via unix tee) you can have (and offer) many m3u8 lists from same "live" HLS with only 9sec of delay (3segments od 3 sec),
or "recorded" HLS from past hour and so on. i tested up to 1440 segments of 1 min , with m3u8 lists of last 60 - 120 - 180 -etc segments .

but i cant jump from segment to another , in order to forward-rewind the "live" HLS.
it is possible?
 
bosborne
Posts: 141
Joined: Wed Jun 06, 2012 10:42 am

Re: HLS stream subtitles

Mon Aug 19, 2013 7:09 am

Just wanted to follow up on my previous question:

"Okay, so we need to specify an external TTML file, and Roku doesn't support embedded TTML in Smooth or HLS?"
 
RokuPatrick

Re: HLS stream subtitles

Mon Aug 19, 2013 11:30 pm

As of the 5.1 release, we've improved our caption support. See here: http://sdkdocs.roku.com/display/sdkdoc/ ... on+Support
 
bosborne
Posts: 141
Joined: Wed Jun 06, 2012 10:42 am

Re: HLS stream subtitles

Tue Aug 20, 2013 5:59 am

Great news, thanks
 
salman23
Posts: 37
Joined: Tue Jun 17, 2014 11:23 pm

Re: HLS stream subtitles

Tue Jun 17, 2014 11:44 pm

Hi,
I am using videoscreen.I want to display srt subtitles.I gave the url to my dropbox public folder.But still not getting.Caption settings are on in my roku device.Any help?

  port = CreateObject("roMessagePort")
    screen = CreateObject("roVideoScreen")
    screen.SetMessagePort(port)

    screen.SetPositionNotificationPeriod(3)
    'EnableCaptions(screen)
    metaData={
        Stream: { url: "http://video.ted.com/talks/podcast/JeffHan_2006_480.mp4" }
        StreamFormat: "mp4"
        SubtitleUrl:"https://dl.dropboxusercontent.com/u/59357079/Game.of.Thrones.S04E10.HDTV.x264-KILLERS.srt"
    }
    screen.ShowSubtitle(true)
    screen.SetContent(metaData)
    screen.Show()

Who is online

Users browsing this forum: No registered users and 2 guests