Capturing video out of an OpenGL window in Windows

前端 未结 4 1675
感动是毒
感动是毒 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:46

    This does look pretty relevant for merging into an AVI (as suggested by Andrew), however I was really hoping to avoid the LPBITMAPINFOHEADERs etc.

    Thanks for the answers, I will report on the success if there is going to be any :)

    In the meantime, additional tips for encoding the raw frames from glReadPixels into video clips would be appreciated.

    Edit: So far, ffmpeg suggested by Mike F seems to be the way to go. However, I didn't get into the actual implementation yet, but hopefully that will change in the near future!

提交回复
热议问题