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

Testing vp8 video codec #89

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

vincentfretin
Copy link
Contributor

I'm creating the PR as draft just so this have some visibility in case someone is interested. Here switching from h264 to vp8 by default for all rooms.
I don't use that myself, this was just to test that it works, and yes it works on Desktop, Android, iOS without any changes in naf-janus-adapter.
I'll keep h264 for now because I read vp8 is not hardware accelerated on iOS devices, so taking much cpu and battery.

@vincentfretin
Copy link
Contributor Author

You can also replace Vp8 by Vp9, it works too, but currently vp9 doesn't work on iOS 14.6 by default, you need to enable the flags in Safari -> Advanced -> Experimental Features
More infos:
https://bugs.webkit.org/show_bug.cgi?id=173141
https://caniuse.com/webm

@mqp
Copy link
Contributor

mqp commented Jul 11, 2021

Makes sense. I'm 90% sure that the only reason we used to use H.264 over VP8 was for Mobile Safari support. If and when iOS supports something more modern with hardware acceleration it would be good to upgrade the default.

@vincentfretin
Copy link
Contributor Author

We could also make it configurable in janus.plugin.sfu.cfg with video_codec = "h264|vp8|vp9" and
h264_profile="42e01f"
vp9_profile="2"

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.

2 participants