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

[channel,rdpecam] framerate support and h264 bitrate tuneup #10276

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

oleg0421
Copy link
Contributor

@oleg0421 oleg0421 commented Jun 15, 2024

  1. To determine camera frame rates and sizes, use ioctl VIDIOC_ENUM_FRAMEINTERVALS and VIDIOC_ENUM_FRAMESIZES. Get rid of hardcoded framerate 30 and videoSizes table.

  2. Some tuneup of how max bitrate for h264 encoding is determined: use a table based on stream resolution (height). The values are smaller comparing to old fixed value of 4 Mbps, which should help with slow uplink connections.

This fix may also help with #10274

Cc: @progxaker, @hardening, @akallabeth

@freerdp-bot
Copy link

Can one of the admins verify this patch?

@oleg0421 oleg0421 force-pushed the rdpecam_client_framerate_fix branch from f441fc0 to f48c8ea Compare June 16, 2024 02:09
@oleg0421 oleg0421 changed the title [channel,rdpecam] use ioctls to query supported frame rates, sizes, fixes #10274 [channel,rdpecam] framerate support and h264 bitrate tuneup Jun 16, 2024
@akallabeth akallabeth added this to the 3.6.0 milestone Jun 17, 2024
Copy link
Member

@akallabeth akallabeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@akallabeth
Copy link
Member

@freerdp-bot test

Copy link

clang-tidy review says "All clean, LGTM! 👍"

@freerdp-bot
Copy link

Refer to this link for build results (access rights to CI server needed):
https://ci.freerdp.com//job/PullRequestTester/12174/

@akallabeth akallabeth merged commit 4a1a92b into FreeRDP:master Jun 17, 2024
7 checks passed
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