2007-05-08, 04:10 AM
Is there some way from within GBPVR to capture a screenshot of the live TV feed (or any other video feed, for that matter) at a particular moment? I want to create a kind of "visual logging" video plugin that for examples captures the screen every time the channel changes.
My attempts so far have involved using IrfanView's capture mechanism, and Windows.Forms.SendKeys.Send() to generate what are essentially PrintScreen keyboard commands. However, the "keypress" never gets to IrfanView. (It works with actual keyboard keypresses, but not with ones generated by my plugin.) The best thing would be an internal API to get the current video frame, but an external screenshot grabber that can be reliably controlled from a plugin would work as well.
Any ideas?
My attempts so far have involved using IrfanView's capture mechanism, and Windows.Forms.SendKeys.Send() to generate what are essentially PrintScreen keyboard commands. However, the "keypress" never gets to IrfanView. (It works with actual keyboard keypresses, but not with ones generated by my plugin.) The best thing would be an internal API to get the current video frame, but an external screenshot grabber that can be reliably controlled from a plugin would work as well.
Any ideas?