简体   繁体   中英

Intercepting video frames from game

I would like to grab video frames (images) from a game that is launched at PC at the moment.

XSplit Broadcaster has such functionality. It somehow listing the processes that are actually video games and allows to grab video frames.

As far as I understand, it can be accomplished by enumerating Direct3D surfaces that are running at the moment and grab the picture from it.

Am I correct? What is the solution for OpenGL games then?

Have you checked out glReadPixels() ? I have used it before. It is a little slow though.

Try

glReadPixels(0,0,width, height,GL_RGB, GL_UNSIGNED_BYTE,buffer);

apitrace似乎能够使用Ye Olde LD_PRELOAD Tricke 捕获帧

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM