Use media source extensions with raw video frames

I am trying in real time to stream H264 video from the server to the browser. The H264 stream is not wrapped inside the MP4 container, but instead it finds the path to the browser (via web sockets) as raw H264 frames.

Question: Is it possible to combine media sources with raw frames instead of a file container such as MP4 or WebM?

Mp4 solutions like MPEG-DASH do not give me the flexibility I need regarding low latency, multiple video synchronization and other elements that I need to achieve.

+6
source share
1 answer

Boxing for MP4 is necessary for MSE and too cumbersome to implement in a browser.

With raw h264, you can try to use a firewall, h264 decoder (via emscripten) for the browser.

See a real-time example in my dedicated project https://github.com/131/h264-live-player

+3
source

Source: https://habr.com/ru/post/980920/


All Articles