--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/c464dc83-153b-42ea-affa-f2d3e705f8a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
In order to synchronize timestamps between audio/video and subtitles, a X-TIMESTAMP-MAP metadata header SHOULD be added to each WebVTT header. This header maps WebVTT cue timestamps to MPEG-2 (PES) timestamps in other Renditions of the Variant Stream. Its format is: X-TIMESTAMP-MAP=LOCAL:<cue time>,MPEGTS:<MPEG-2 time> e.g. X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/7b8b5bec-419c-48ed-97a8-f77278a93fa6%40googlegroups.com.
Thank you KQ.Yes, I wonder if video segments have some kind of timestamps.But I am not sure what kind those timestamps are of?
And can client code have access to them from a player? For example, can one determine exact timestamp that is playing right now?
Especially, can it be done for live streaming (not just for video on demand)?
> Have you thought about adding a time mark to chat texts, ...If I understand you right we already do it.In the previous message I wrote that we use "time since start" for synchronization. But it loos like we use Unix timestamps.
So, server marks all chat messages with a timestamp once it receives it.
Also server include timestamps in HLS segments while generating whose segments.
And then chat on client-side can show a message exactly when timestamp from HLS segment and timestamp of the message matches.
--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.
To post to this group, send email to shaka-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/a669075e-eec8-446e-8aee-725954640d76%40googlegroups.com.
Hello guys,
please let me share my thoughts about this once again.
We have to sync chat with both live and vod video streams.
I guess live case is more difficult than vod one.KQ, you mentioned WebVtt uses X-TIMESTAMP-MAP tags in order to sync with the video.
It allow us to map cue timestamp to a video timestamps.But does it work for live stream? Is WebVtt used for live streaming at all?
Consider the following case:
There is a live stream that has been started, say, 10 minutes ago.
A new listener joins to the stream.A teacher writes a message to chat. Server marks the message with "time since stream start" timestamp (let it be 10:05) and sends it to clients.
Each client has a video playback delay. So, the message can't be shown right now because a moment it was sent on isn't yet occurred on the client-side.At some point a player should somehow understand that "this exact moment the message was sent on by the teacher" is playing right now and show the message.
I wonder, can a listener understand how long ago the stream was started on server when it connects to the stream?The listener's player should understand that it is playing 10:05 moment and not just 00:05 in order to correctly map timestamps.It seems to me that there is nothing we could know it from.
The stream is just RTP data. Shaka Packager doesn't support RTP, so we wrap it in MPEG-TS (for instance, with FFmpeg).
I guess RTP doesn't have any information about overall stream duration. Maybe this information is present on MPEG-TS container-level?
Please, let me know if my examples are not clear. I will try to reword them.
Thank you.
--
You received this message because you are subscribed to the Google Groups "Shaka Packager Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-packager-users+unsubscrib...@googlegroups.com.
To post to this group, send email to shaka-packager-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-packager-users/9ffa9e38-2987-49d7-856f-10b582be914a%40googlegroups.com.