Skip to content

🚀 Sort video sources by tuples of (codec, bitrate) and append codec information to the video's type attribute#36224

Merged
coreymasanto merged 19 commits intoampproject:mainfrom
coreymasanto:video-update
Oct 7, 2021
Merged

🚀 Sort video sources by tuples of (codec, bitrate) and append codec information to the video's type attribute#36224
coreymasanto merged 19 commits intoampproject:mainfrom
coreymasanto:video-update

Conversation

@coreymasanto
Copy link
Copy Markdown
Contributor

@coreymasanto coreymasanto commented Sep 30, 2021

Video sources are currently sorted only by bitrate, and the source that contains the highest bitrate is prioritized. Because we want to prioritize the VP9 codec, this PR uses codec values as the primary means of sorting all potential sources for each video. As a result, bitrate_kbps will be used only as a secondary factor in the sort.

Fixes #36228

@coreymasanto coreymasanto changed the title 🚀 [Video] Sort video sources by tuples of (codec, bitrate) 🚀 Sort video sources by tuples of (codec, bitrate) Sep 30, 2021
@coreymasanto coreymasanto marked this pull request as ready for review September 30, 2021 21:54
@coreymasanto
Copy link
Copy Markdown
Contributor Author

Note that the test-amp-video-analytics.js e2e test failure also occurs at head, so it should be unrelated.

@amp-owners-bot amp-owners-bot bot requested a review from alanorozco September 30, 2021 21:54
@gmajoulet gmajoulet requested review from gmajoulet and removed request for alanorozco September 30, 2021 22:12
…video sources; split added test into 2 (validation of bitrate sort and validation of codec sort); update test video json to include codec information
@coreymasanto coreymasanto changed the title 🚀 Sort video sources by tuples of (codec, bitrate) 🚀 Sort video sources by tuples of (codec, bitrate) and append codec information to the video's type attribute Oct 1, 2021
@coreymasanto coreymasanto requested a review from gmajoulet October 1, 2021 20:29
@coreymasanto coreymasanto requested a review from gmajoulet October 6, 2021 17:50
@coreymasanto coreymasanto requested a review from gmajoulet October 6, 2021 21:56
@coreymasanto coreymasanto enabled auto-merge (squash) October 7, 2021 15:27
@coreymasanto coreymasanto disabled auto-merge October 7, 2021 15:42
@coreymasanto coreymasanto enabled auto-merge (squash) October 7, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Story video] Add codec information received from video cache

4 participants