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

fix: Fix chooseCodecsAndFilterManifest for similar frameRate #5817

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

avelad
Copy link
Member

@avelad avelad commented Oct 26, 2023

Fixes https://storage.googleapis.com/shaka-demo-assets/sintel/dash.mpd
mp4 --> 12288/512 --> 24
webm --> 1000000/42000 --> 23.80952380952381

@avelad avelad added type: bug Something isn't working correctly priority: P1 Big impact or workaround impractical; resolve before feature release labels Oct 26, 2023
@avelad avelad added this to the v4.6 milestone Oct 26, 2023
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@@ -128,7 +128,7 @@ shaka.util.StreamUtils = class {
const validVideoIds = [];
const validVideoStreamsMap = new Map();
const getVideoGroupId = (stream) => {
return (stream.frameRate || 0) + (stream.hdr || '');
return Math.round(stream.frameRate || 0) + (stream.hdr || '');
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't this result in NTSC 29.97 and 30 being treated as the same FPS?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes! But I think that nobody uses both in the same stream

@avelad avelad merged commit 8ff204d into shaka-project:main Oct 27, 2023
20 checks passed
@avelad avelad deleted the variants-filtering branch October 27, 2023 07:09
Robloche pushed a commit to Robloche/shaka-player that referenced this pull request Nov 30, 2023
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Dec 26, 2023
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Dec 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P1 Big impact or workaround impractical; resolve before feature release status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants