Decoding video directly into a texture in separate thread
问题 Is it possible to decode video using ffmpeg capabilities directly into texture asynchroniously? I need to output the video onto a geometry. There is mpv video player, which can output video directly into framebuffer and uses other close to metal features, but is there minimalistic example, which suitable for embedded devices (OpenGL ES 2.0 or 3.0)? It would be nice if texture won't leave GPU memory during whole the frame time. 回答1: I currently use sws_scale to trim the edges off mpegts