Live streaming dash content using mp4box

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.

Leave a Comment