live-streaming


HLS live streaming subtitle?


I am using rtmp to broadcast streams to the server and using HLS to stream the video to my device.
Is there a subtitle protocol that I can update the subtitle on real time,
for example, there is a subtitle file in server, I can keep write into that file and my player also can keep read from that file.
I know WebVTT works for recorded streaming video, but will it work for live streaming video? Can I link my player to the webVTT file and I can just update the subtitle by keeping writing to it?
You can use WebVTT to add subtitles to a live HLS stream. You do this by using a live subtitle playlist. It works just like a live playlist - you add and remove entries from it as time progresses.
First create a master playlist and add a reference to your subtitle playlist (subtitles.m3u8) to it. Here’s a (simplified) example:
#EXTM3U
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",URI="subtitles.m3u8",LANGUAGE="en"
#EXT-X-STREAM-INF:BANDWIDTH=500000,RESOLUTION=1920x1080,SUBTITLES="subs"
prog_index.m3u8
The next step is updating the subtitle playlist during the live broadcast. Let’s say your subtitle playlist looks like this initially:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10,
1.webvtt
#EXTINF:10,
2.webvtt
#EXTINF:10,
3.webvtt
Notice that the #EXT-X-ENDLIST tag is missing from the playlist. This will cause the player to keep retrieving the playlist.
Then some time later (segment duration) it will look like this:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:2
#EXTINF:10,
2.webvtt
#EXTINF:10,
3.webvtt
#EXTINF:10,
4.webvtt
And so on. You’ll probably have to write some custom code to update the subtitle playlist.

Related Links

Streaming webcam and mic inputs through browser
live555 streaming using ByteStreamMemoryBufferSource
mpeg dash live stream example [closed]
Live streamign using Kaltura and Wowza + FMLE
Real Time screen grabbing and streaming with libav-tools
Access camera at remote location on iphone
Hitbox Follower Alert
Take input from a live source instead of from a file in live555
How to implement streaming in ios app for webcam xcode project
what is the default wowza live stream name
How to create mfra box for ismv file if it is not present?
Live streaming a meeting between two places
Play and pause functions works only once
Streaming to an iPad [closed]
How does Http live streaming works?
Live streaming Flash video

Categories

HOME
hpoo
cucumber
clearcase
yii
android-fragments
transactions
tcsh
plaid
plpgsql
visual-studio-2010
moodle-api
ontology
navigation
firebase-database
tweepy
responsive-design
rangy
chromecast
clish
corona
global-variables
vertica
robolectric
home
node-webkit
akka-persistence
weex
neo4j.rb
bosun
connection-refused
unordered-multimap
oracleforms
adapter
spring-annotations
tsung
netbios
python-2.x
devtools
winrm
gnu-classpath
amazon-kms
des
cartopy
mars-simulator
swfupload
access-denied
optionaldataexception
reverse-dns
destroy
flume-twitter
directwrite
cloudwatch
sony-future-lab-n
knockout-2.0
sonatype
android-sharing
portability
gmaps.js
.when
mechanicalturk
nitrousio
haraka
portal
researchkit
deviare
eclemma
perforce-integrate
node-glob
jsr363
android-expansion-files
json-spirit
variable-length-array
arbre
fanotify
asp.net-web-api-helppages
pythonxy
featuretoggle
css-paged-media
replicaset
componentart
nsmutabledata
nhibernate-criteria
operands
dos2unix
dmake
screwturn
refit
windows-taskbar
iirf
sql-view
bcdedit
html-frames
mongo-jackson-mapper
spiral
cmath
clrprofiler
trialware
algol68
type-safety
qtextbrowser
photo-management
jmenu
libxslt
turbine
ios-4.2
external-sorting
rtti
sqlsitemapprovider
activex-exe
bindable-linq

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App