emarsden / dash-mpd-rs

Rust library for parsing, serializing and downloading media content from a DASH MPD manifest.
MIT License
70 stars 22 forks source link

Interface to MPD XML-rewriting filters/plugins #36

Open emarsden opened 9 months ago

emarsden commented 9 months ago

It can be useful to allow the user to read and modify the MPD manifest before downloading media segments from it. Use cases:

As of 2023-10-22 we have implemented support for XSLT stylesheets via xsltproc, which allows XML rewriting. This is a standards-based and easy to implement solution to filtering/rewriting, but xsltproc only supports XSLT v1.0 (v3.0 is more flexible and for example includes functions for manipulating xs:duration attributes) and XSLT is not the most widely adopted language.

Possible alternatives:

I will be thinking about implementing some of these in the next few months.