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

failed to initialize c2.android.avc.encoder, error 0xfffff #64

Open
zengjiaozi opened this issue Jul 26, 2022 · 2 comments
Open

failed to initialize c2.android.avc.encoder, error 0xfffff #64

zengjiaozi opened this issue Jul 26, 2022 · 2 comments

Comments

@zengjiaozi
Copy link

部分机型点击录制会出现这个报错,能帮忙看看什么问题导致的么 谢谢

@zengjiaozi
Copy link
Author

private MediaCodec createEncoder(String type) throws IOException {
try {
// use codec name first
if (this.mCodecName != null) {
return MediaCodec.createByCodecName(mCodecName);
}
} catch (IOException e) {
Log.w("@@", "Create MediaCodec by name '" + mCodecName + "' failure!", e);
}
return MediaCodec.createEncoderByType(type);
}

传入的参数是android.avc.encoder 正常来说这个字符串存在应该不会说是非法的存在吧

@zengjiaozi zengjiaozi reopened this Dec 7, 2022
@yijigu7745
Copy link

yijigu7745 commented Dec 7, 2022 via email

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

No branches or pull requests

2 participants