Skip to content

Comments

add support for rockchip h264/h265 video encoders#885

Draft
chenosaurus wants to merge 3 commits intomainfrom
dc/rockchip_encoder
Draft

add support for rockchip h264/h265 video encoders#885
chenosaurus wants to merge 3 commits intomainfrom
dc/rockchip_encoder

Conversation

@chenosaurus
Copy link
Contributor

No description provided.

@ladvoc ladvoc self-requested a review February 20, 2026 20:26
Copy link
Contributor

@ladvoc ladvoc left a comment

Choose a reason for hiding this comment

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

LGTM ✅, this should be tested on-device if it hasn't been already before merging.

let mut sum_iter_ms = 0.0;
let mut logged_mjpeg_fallback = false;
let mut consecutive_capture_errors: u32 = 0;
const MAX_CONSECUTIVE_CAPTURE_ERRORS: u32 = 30;
Copy link
Contributor

Choose a reason for hiding this comment

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

question: What leads to these intermittent capture errors? Is 30 the right limit to set?

);
}

if arm {
Copy link
Contributor

Choose a reason for hiding this comment

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

comment (non-blocking): I'm wondering if we should put all hardware encoders behind crate features. Ideally, we shouldn't be compiling hardware-specific code on platforms that can't take advantage of it. @cloudwebrtc, did you consider this when adding support for NVIDIA?

@ladvoc
Copy link
Contributor

ladvoc commented Feb 20, 2026

One more thing: the README should be to list Rockchip under the "Hardware video enc/dec" section.

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