rgb
rgb

Reputation: 1284

Advice on dynamically combining mpeg-dash mpd data

I'm doing research for a project that's about to start.

We will be supplied hundreds of 30 second video files that the end user can select (via various filters) we then want to play them as if it was one video.

It seems that Media Source Extensions with MPEG-DASH is the way to go.

I feel like it could possibly be solve in the following way, but I'd like to ask if this sounds right from anyone who has done similar things

My theory:

Create mpd's for each video (via mp4box or similar tool)

User make selections (each of which has a mpd)

Read each mpd and get their <period> elements (most likely only one in each)

Create a new mpd file and insert all the <period> elements into it in order.

Caveats

I imagine this may be problematic if the videos were all different sizes formats etc, but in this case we can assume consistency.

So my question is to anyone with mpeg-dash / mpd exterience, does this sound right? or is there a better way to acheive this?

Upvotes: 0

Views: 1063

Answers (1)

Daniel
Daniel

Reputation: 1256

Sounds right, multi period is the only feasible way in my opinion. Ideally you would encode all the videos with the same settings to provide the end user a consistent experience. However, it shouldn't be a problem if quality or even aspect ratio etc change from one period to another from a technical point of view. You'll need a player which supports multi period, such as dash.js or Bitmovin.

Upvotes: 0

Related Questions