Class for video capturing in OpenGL ES 2.0 application