Jump to content

New subtitle api


Luke

Recommended Posts

This will be in the next dev build. In one sentence, this means

 

Subtitles without transcoding.

 

Which is obviously a very good thing. The api is very easy to use.

 

First, there is a new property added to MediaStream: IsTextSubtitleStream

 

Then, there are two api endpoints:

 

 

/Videos/{Id}/{MediaSourceId}/Subtitles/{Index}/Stream.srt

/Videos/{Id}/{MediaSourceId}/Subtitles/{Index}/Stream.vtt

 

Any text stream supports this - meaning they can be converted to either srt or vtt, depending on what you need.

 

If resuming or seeking, you can also supply StartPositionTicks.

  • Like 6
Link to comment
Share on other sites

  • 2 weeks later...
Redshirt

Are you planning on expanding the StreamBuilder class to generate this url as a companion to the video url if subtitles are requested? Or should we handle that logic separately?

Link to comment
Share on other sites

yes, i will be doing that soon, because subtitle delivery method will affect the decision making of direct stream vs transcode

Link to comment
Share on other sites

darwindeeds

Luke, looks like the subtitle stream has to be a part of the m3u8 playlist for iOS to be able to use it without burning/transcoding. Is it something that is possible?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...