Set preferred video codec to VP9 to improve video quality and consistency #69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(*requires testing on safari, mobile, maybe some additional devices)
Changes
Context
As announced last month, VP9 is now supported and should provide the same video quality with less bandwidth / data transfer required:
https://getstream.io/blog/vp9-enhanced/
We saw lots of quality drops during NO-THING and from my initial testing, VP9 seems to help a good amount. Note that this currently only helps Chrome and Android devices — Safari and IOS still use h264 because of hardware acceleration, and Firefox has some "intermittent" issues for now when not streaming using vp8.
GetStream/stream-video-js#1434
Testing
Verified locally that viewing my stream in Firefox looks the same, and viewing in Chrome looks better overall (still drops sometimes, but it basically shifts the quality window up and prevents the stream from looking like a baked potato when I open it up.)
VP8 in Chrome:
CleanShot.2024-12-30.at.11.25.02.mp4
VP9 in Chrome:
CleanShot.2024-12-30.at.11.26.07-converted.mp4