video-dev / hls.js

HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
https://hlsjs.video-dev.org/demo
Other
14.82k stars 2.57k forks source link

Does hls.js support extracting SEI frame from videos? #4421

Closed dongrixinyu closed 2 years ago

dongrixinyu commented 2 years ago

ponse_

dylanjha commented 2 years ago

@dongrixinyu would this event help?

Found it in the list of runtime events

dongrixinyu commented 2 years ago

Thank you for your answer. and I ll reply after i tried this hook

dylanjha commented 2 years ago

@dongrixinyu I'm not sure the answer to your 2 questions.

Did you try this code above with the Hls.Events.FRAG_PARSING_USERDATA listener? What were the results?

antonm76 commented 2 years ago

@robwalch I set SEI user data in my stream and then I able to read them with FRAG_PARSING_USERDATA events but it is only possible for HLS streams with MPEGTS segments. When I try to use FMP4 (with ffmpeg's hls muxer) or M4S (which are generated by the ffmpeg's dash muxer) user data samples are always emty.

antonm76 commented 2 years ago

@robwalch I use v.1.1.5