简体   繁体   中英

Encoding raw h.264 data to browser via Dash

I have a live stream of raw h264 (no container) coming from a remote webcam. I wanna stream it live in browser using DASH. DASH requires creating mpd file (and segmentation). I found tools (such as mp4box) that accomplish that in static files, but i'm struggling to find a solution for live streams. any suggestions - preferably using node.js modules ?

Threads i have checked:

  1. mp4box - from one hand i saw this comment that states " You cannot feed MP4Box with some live content. You need to feed MP4Box -live with pre-segmented chunks. " on the other hand there's a lot of people directing to this bitmovin tutorial which does implement a solution using mp4box. In the toturial they are using mp4box (which has a node.js api implementation ) and x264 (which doesn't have node.js module? or is contained in ffmpeg/mp4box?)
  2. ngnix - ngnix has a module that support streaming to DASH using rtmp. for exemple in this toturial . I prefer not to go this path - as mention i'm trying to do it all in node.js.

Although i read couple of posts with similar problem, I couldn't find a suitable solution. Help would be much appreciated!

The typical architecture is to send your live stream to a streaming server which will then do the heavy lifting to make the stream available to other devices, using streaming protocols such as HLS and DASH.

So the client devices connect to the server rather than to your browser.

This allows the video to be encoded and packaged to reach as many devices as possible with the server doing any transcoding necessary and potentially also creating different bit rate versions of your stream to allow for different network conditions, if you want to provide this level of service.

The typical structure is encoded stream (egh264 video), packaged into a container (eg mp4 fragmented) and delivered via a streaming protocol such as HLS or DASH.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM