Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(DASH): Allow PeriodCombiner for using streams once #6097

Merged
merged 3 commits into from
Jan 15, 2024

Conversation

tykus160
Copy link
Contributor

In our streams we have guarantee that every track will have a single match in every period. This change allows PeriodCombiner to take benefit of this knowledge.

I was testing PeriodCombiner.combinePeriods() performance of mentioned changes on Tizen 2021 on 2 streams and I've got following results:

content upstream proposed changes
stream 1 17 ms 12 ms
stream 2 191 ms 98 ms

Both streams are VOD.
Stream 1 has 18 periods with 6 video & audio tracks in each.
Stream 2 has 18 periods with 6 video tracks & 36 audio tracks in each.

externs/shaka/player.js Outdated Show resolved Hide resolved
* only once in period flattening. It speeds up underlying algorithm
* but may raise issues if manifest does not have stream consistency
* between periods.
* Defaults to <code>false</code>.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For me this should default to true, @littlespex , what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be more than happy to set it to true by default, but potentially it will increase number of PERIOD_FLATTENING_FAILED errors on not well structured manifests. We'd have to add mention of this setting in error description or in FAQ (or both).

Copy link
Collaborator

@littlespex littlespex Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Defaulting to true would technically be a breaking change for us. You would have call out in the release notes that if you must opt-out if you want consistent behavior with previous versions after upgrading.

@avelad avelad added type: enhancement New feature or request priority: P3 Useful but not urgent component: DASH The issue involves the MPEG DASH manifest format labels Jan 12, 2024
@avelad avelad added this to the v5.0 milestone Jan 12, 2024
@avelad avelad merged commit 5e3db78 into shaka-project:main Jan 15, 2024
11 of 15 checks passed
@tykus160 tykus160 deleted the wt-period-combiner-config branch January 15, 2024 07:42
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Mar 15, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: DASH The issue involves the MPEG DASH manifest format priority: P3 Useful but not urgent status: archived Archived and locked; will not be updated type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants