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

Fix simulcast factory not sending back EncoderInfo #67

Merged
merged 1 commit into from
Mar 24, 2022
Merged

Conversation

davidliu
Copy link
Contributor

No description provided.

@davidliu davidliu requested a review from hiroshihorie March 23, 2022 16:35
}

override fun getEncoderInfo(): VideoEncoder.EncoderInfo {
val future = executor.submit(Callable { return@Callable encoder.encoderInfo })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the main thing that was breaking the hardware encoder from working (and preventing H264 from working). EncoderInfo holds onto information needed for resolution alignment, which is used to adjust the resolution (only works on 16x16 aligned frames).

Copy link
Member

@hiroshihorie hiroshihorie left a comment

Choose a reason for hiding this comment

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

Nice fix ! No issues with H264 encoding now ?

@davidzhao
Copy link
Member

would flutter have the same issue then?

@davidliu
Copy link
Contributor Author

davidliu commented Mar 23, 2022

Yeah, H264 works properly now.

Flutter uses the same code IIRC, I'll put in a PR for Flutter tomorrow.

It looks like this behavior got broken in the M97 upgrade, so the device farm testing will hopefully help catch these breakages down the road.

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.

3 participants