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

Gecko camera fixes #11

Merged
merged 2 commits into from Jun 5, 2023
Merged

Gecko camera fixes #11

merged 2 commits into from Jun 5, 2023

Conversation

rainemak
Copy link
Member

@rainemak rainemak commented Jun 5, 2023

[gecko-camera] Use media buffers depending on CPU vendor. JB#56755
[gecko-camera] Set up the video encoder to produce CBR stream. JB#57733

Set up the video encoder to produce a constant bitrate stream because
the VBR stream that is generated by default conflicts with internal
WebRTC bandwidth limiting algorithms.
After this commit is applied, gecko-camera will read /proc/cpuinfo,
guess CPU vendor, and only use media buffers on MediaTek devices.

The behavior can be controlled regardless of CPU vendor using the
following environment variables:

  GECKO_CAMERA_DROID_FORCE_MEDIA_BUFFER=1 - use media buffers
  GECKO_CAMERA_DROID_NO_MEDIA_BUFFER=1 - not use media buffers
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.

None yet

3 participants