Live streaming dash content using mp4box

断了今生、忘了曾经 提交于 2019-11-27 07:01:29

You don't need MP4Box to generate the required output, but you'll need to chunk the content yourself looking for boxes in the generated file.

Basically you'll generate an fMP4 with H264, and send to the browser the moov box for initialization and the moof+mdat boxes for each fragment of MP4 that you generate. You'll have to code the player in JavaScript, you probably won't be able to use a standard DASH player.

To generate the correct fragmented MP4, you need to pass this to ffmpeg: -movflags empty_moov+omit_tfhd_offset+frag_keyframe+default_base_moof.

Be sure to use the latest version available.

As far as I understand your solution you are not streaming but progressively downloading a single MP4 file. Am I understanding that correctly?

I recently started the RTP2DASH project to do real DASH live streaming from a RTP datasource. It is still very 'alpha' but it should be easily adoptable for simple usecases.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!