MediaCodec render on offscreen GL Texture notworking on some specific video

爱⌒轻易说出口 提交于 2019-12-11 19:05:29

问题


I am doing some video frame extracting work, based on the sample given by BigFlakes's example code

It worked well for most of the videos I tested with, however, there are some video clips which I shot by my phone, cannot be correctly extracted by this method. Please refer to the screen shot. The correct frame is extracted by default MediaMetadataRetriever, and the "image of the colors" is extracted by the sample code.

Correct Frame:

False Frame:

The testing video clip is here It can be played by extractor + mediacodec + surface without any problem Nest.mp4

It seems that the problem is from the GL Texture Rendering. Could anyone help to point out what could possibly go wrong? Why it works for most of other videos while it always fail on some of the video clips?

来源:https://stackoverflow.com/questions/57504443/mediacodec-render-on-offscreen-gl-texture-notworking-on-some-specific-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!