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

初始化错误 #12

Open
zhaj08 opened this issue Sep 21, 2022 · 1 comment
Open

初始化错误 #12

zhaj08 opened this issue Sep 21, 2022 · 1 comment

Comments

@zhaj08
Copy link

zhaj08 commented Sep 21, 2022

请帮忙看一下是什么问题,谢谢
openUVCCamera:
java.lang.IllegalArgumentException: Failed to initialize audio/mp4a-latm, error 0xfffffffe
at android.media.MediaCodec.native_setup(Native Method)
at android.media.MediaCodec.(MediaCodec.java:1811)
at android.media.MediaCodec.createEncoderByType(MediaCodec.java:1777)
at com.herohan.uvcapp.VideoCapture.initVideoAudioEncoder(VideoCapture.java:257)
at com.herohan.uvcapp.VideoCapture.(VideoCapture.java:204)
at com.herohan.uvcapp.CameraInternal.openUVCCamera(CameraInternal.java:239)
at com.herohan.uvcapp.CameraInternal.openCamera(CameraInternal.java:191)
at com.herohan.uvcapp.CameraConnectionService$CameraConnection.openCamera(CameraConnectionService.java:310)
at com.herohan.uvcapp.CameraHelper.lambda$openCamera$6$com-herohan-uvcapp-CameraHelper(CameraHelper.java:253)
at com.herohan.uvcapp.CameraHelper$$ExternalSyntheticLambda6.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.os.HandlerThread.run(HandlerThread.java:65)

@shiyinghan
Copy link
Owner

我修改了一下VideoCapture,你更新一下本库的代码,重新运行一下试试

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