-
Notifications
You must be signed in to change notification settings - Fork 370
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
Buffer issue with camera app + Virtual.mp4 #182
Comments
Me too, how to fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have tested this apk for months on serveral devices and it performs the same with all.
The issue is that any default camera app of any phone will crash as you take a picture from the virtual.mp4 replacement.
The picture will take place, but then crash as you attempt to take a second picture. As you reopen the camera and you go over it again it will again crash.
The issue seems that is comming from a bad translation.
So it seems that ImageReader needs color format 0x21(nv21), but the camera format is 0x32315669. We then after have to find what 0x32315669 format in the net.and then convert to 0x21 if possible.
If anyone manged to make this work, I can pay for the fix
Please reach out to me on tg @reptilano.
More information about the log:
[ 2023-10-03T15:18:09.568 10068: 8403: 8508 I/LSPosed-Bridge ] Crash unexpectedly: java.lang.UnsupportedOperationException: The producer output buffer format 0x32315669 doesn't match the ImageReader's configured buffer format 0x21. at android.media.ImageReader.nativeImageSetup(Native Method)
at android.media.ImageReader.acquireNextSurfaceImage(imagereader.java:450) at android.media.ImageReader.acquireNextImage(imagereader.java:504)
at com.android.camera2.MiCamera2$2.onImageAvailable(micamera2.java:2) at android.media.ImageReader$ListenerHandler.handleMessage(imagereader.java:798)
at android.os.Handler.dispatchMessage(handler.java:107) at android.os.Looper.loop(looper.java:224)
at android.os.HandlerThread.run(handlerthread.java:67)[ 2023-10-03T15:18:09.568 10068: 8403: 8508 E/AndroidRuntime ] FATAL EXCEPTION: CameraHandlerThread
Process: com.android.camera, PID: 8403java.lang.UnsupportedOperationException: The producer output buffer format 0x32315669 doesn't match the ImageReader's configured buffer format 0x21.
at android.media.ImageReader.nativeImageSetup(Native Method) at android.media.ImageReader.acquireNextSurfaceImage(imagereader.java:450)
at android.media.ImageReader.acquireNextImage(imagereader.java:504) at com.android.camera2.MiCamera2$2.onImageAvailable(micamera2.java:2)
at android.media.ImageReader$ListenerHandler.handleMessage(imagereader.java:798) at android.os.Handler.dispatchMessage(handler.java:107)
at android.os.Looper.loop(looper.java:224) at android.os.HandlerThread.run(handlerthread.java:67)
The text was updated successfully, but these errors were encountered: