Skip to content

Conversation

@lollolong
Copy link
Contributor

I've added an option to drop streams based on the period name, this can be useful to drop ads which got injected into the mpd.
Sample: <Period id="ad-bumper-0-0" duration="PT5.005S" start="PT0.000S">

While adding this option I've noticed a bug - the dropping of streams isn't working properly. I like the approach how it was initially designed to select the streams using DoFilterKeep() and then inversing the selection, however this wont work if I specify multiple criteria's.

In my case: --drop-audio role=Description:period=ad-bumper:for=all
The logic is searching for streams with role "Description" AND period "ad-bumper". It wont find any streams and ends up doing nothing.

I copied the DoFilterKeep() into DoFilterDrop() and inversed now every condition. A bit more code but works now correct.

@lollolong lollolong changed the title Period Stream Filter & Bugfix Inverse Logig Period Stream Filter & Bugfix Inverse Logic Mar 20, 2025
@nilaoda nilaoda force-pushed the main branch 2 times, most recently from d1bea34 to e53faf6 Compare October 27, 2025 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant