android - Encode OpenGL offscreen render to video using ffmpeg, OpenGL stop refreshing after a few frames? -
I am developing an Android application that can render a video using OpenGL and frames in the video by FFPPA. Can encode. I am render in ndk and encode in symbols
First of all, I set up an off-screen OpenGL EC context using EGL, then I would like to draw the frame using OpenGL SO calls.
Again, I capture pixels using glReadPixels, and encode them into a video using FFPP calls.
The problem is around 25 frames, the OpenGL drawing call does not work anymore. The GlReadPixels call always gets the same data.
I think I lost my OpenGL context after 25 frames, but when I tried that I made the comparison with the result of "Iglagat content syntax", I always get "true" Is
Am I viewing the context correctly? And if I lost my reference, how can I change it?
Comments
Post a Comment