-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SEI #33
Comments
Your example should work in Safari on macOS and iOS today. Does it not work? |
for Datacue I think yes, but SEI data is not supported? |
If SEI events have zero duration, and are instead associated with individual video frames, you should prefer to use DataCue |
Note: SEI (Supplemental Enhancement Information) is described in H.264 Annex D. The spec describes a number of predefined messages (see |
I have some more questions: If SEI information is associated with individual video frames, how far ahead of the current playback position should SEI events be surfaced, to give the web application enough time to act on the information? Also, do you expect that the web application can update the browser DOM in response to SEI information in a way that is frame accurate and synchronized to the video? |
I think, how far ahead of the current playback position should SEI events be surfaced depends on the video buffer, think about the pipeline: network -> demux(get SEI) -> buffer -> decode -> render; it may cost at least 2s(low latency HLS) for a frame to get in and out of the video buffer. So, I think it's enough for web apps to solve the SEI information. As to the synchronization, I think use requestVideoFrameCallback is a good way to sync the SEI rendering with the accurate video frame. Also, if we want to control the render pipeline, just use the WebCodecs. |
SEI is useful when we want to render content synchronously with video element, for example: subtitles, trigger for event or animation, body shape mask and so on (you can visit this explainer for full usecases) but:
So, can we have SEI as a supported DataCue source, then we can get SEI information from video element by DataCue API.
The text was updated successfully, but these errors were encountered: