简体   繁体   中英

How to generate mpd (MPEG Dash manifest) file in code level

How to create MPEG Dash (mpd) file in code level.I couldn't found a way to do this. It's better to have a node js sample. I can do it in command line. I used MP4Box tool But I need to do it in my node js application.

I am guessing you probably want to create a DASH stream rather than just a manifest file - the manifest file would not be of interest generally without the media streams it indexes to.

This is actually not trivial, especially as there are so many options within the DASH spec and different formats possible within the manifest - eg segment timeline, template etc.

It is probably easiest to look at an openesource example of a packager to get a feel for what is involved - you may even find you can just use one as is. One of the most popular is Shaka Packager:

The documentation for the Shaka Packager includes the following architecture diagrams which may give you a feel for how the manifest creation is tied into the overall packaging work:

在此处输入图像描述

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