-
Notifications
You must be signed in to change notification settings - Fork 274
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
VideoFrame is a NULL pointer #148
Comments
I encountered the same problem. E/AndroidRuntime(29443): FATAL EXCEPTION: FinalizerWatchdogDaemon E/AndroidRuntime(29443): Process:
com.example.camera, PID: 29443 E/AndroidRuntime(29443): java.util.concurrent.TimeoutException:
android.media.MediaMetadataRetriever.finalize() timed out after 10 seconds E/AndroidRuntime(29443): at
android.media.MediaMetadataRetriever.native_finalize(Native Method) E/AndroidRuntime(29443): at
android.media.MediaMetadataRetriever.finalize(MediaMetadataRetriever.java:332) E/AndroidRuntime(29443): at
java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:222) E/AndroidRuntime(29443): at
java.lang.Daemons$FinalizerDaemon.run(Daemons.java:209) E/AndroidRuntime(29443): at
java.lang.Thread.run(Thread.java:761) E/libEGL (29443): call to OpenGL ES API with no current context (logged once per
thread) E/MediaMetadataRetrieverJNI(29443): getFrameAtTime: videoFrame is a NULL pointer
E/MediaMetadataRetrieverJNI(29443): getFrameAtTime: videoFrame is a NULL pointer
E/MediaMetadataRetrieverJNI(29443): getFrameAtTime: videoFrame is a NULL pointer
E/MediaMetadataRetrieverJNI(29443): getFrameAtTime: videoFrame is a NULL pointer
E/MediaMetadataRetrieverJNI(29443): getFrameAtTime: videoFrame is a NULL pointer
E/MediaMetadataRetrieverJNI(29443): getFrameAtTime: videoFrame is a NULL pointer |
Any Update on This Issue got the same Exception on flutter app and the App got crashed.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At first, I ignored the problem, thinking it was the video. However, as the number of videos increased, more and more videos appeared this problem, but this problem is less common in Android native demo.
Android natve demo, the same impl as plugin:
It's a weird question.
I rewrote a plugin with the same implementation and got the same result as the video_thumbnail plugin.
When I changed two places, the results became better:
Although some videos still get this error, the result is still better than the beginning, in my case, it is good enough~
Of course, if you do not care that the screenshot is anywhere in the video, you can use this:
mediaMetadataRetriever.frameAtTime
For other useages, refer to the api in the MediaMetadataRetriever.
hopefully the plugin will be maintained!
@justsoft
The text was updated successfully, but these errors were encountered: