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

Set preferred video codec to VP9 to improve video quality and consistency #69

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kyeah
Copy link
Collaborator

@kyeah kyeah commented Dec 30, 2024

(*requires testing on safari, mobile, maybe some additional devices)

Changes

  • Use new experimental flag to set preferred codec to VP9 when device/platform supports it

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

@kyeah kyeah marked this pull request as draft December 30, 2024 17:14
@kyeah kyeah requested a review from bhaviksingh December 30, 2024 17:14
Copy link

netlify bot commented Dec 30, 2024

Deploy Preview for is-this-thing-on ready!

Name Link
🔨 Latest commit d7f5691
🔍 Latest deploy log https://app.netlify.com/sites/is-this-thing-on/deploys/6772d4fe9e55540008136aa8
😎 Deploy Preview https://deploy-preview-69--is-this-thing-on.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 68 (🔴 down 28 from production)
Accessibility: 93 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 73 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

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