Capturing video out of an OpenGL window in Windows

前端 未结 4 1692
感动是毒
感动是毒 2020-12-15 09:48

I am supposed to provide my users a really simple way of capturing video clips out of my OpenGL application\'s main window. I am thinking of adding buttons and/or keyboard s

4条回答
  •  忘掉有多难
    2020-12-15 10:47

    I had to create a demo project of recording an OpenGL rendering into a video. I used glReadPixels to get the pixel data and created the video with OpenCV's cvWriteFrame. OpenCV lets you write in divx or even x264/vp8(with ffmpeg compiled in).

    I have a more detailed writeup on my blog post along with a sample project. http://tommy.chheng.com/2013/09/09/encode-opengl-to-video-with-opencv/

提交回复
热议问题