Solved

Screen Cap WITH Media Player Content?

Posted on 2004-10-08
3
167 Views
Last Modified: 2012-05-05
Hello,

  I was playing with my screen capture utility the other day and I noticed that, while it caps the screen perfectly, and shows me the mouse pointer etc..  It doesn't show me whats playing with in a MOV/AVI/MPEG viewer..

  This is the screen cap code I use (basically) http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20335134.html

  When my screen capture program caps the screen, if there is a Media Player window open, it wont capture whats in the media player.. It just gives a black blank area..

What causes this?  Is this an error in my code?  How do I fix this so I CAN capture the screen and get whats in the media player?

Thanks.

-Jason
0
Comment
Question by:Palamedes
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 50 total points
Comment Utility
No, this is not an error in your code. Unfortunately, it isn't possible to get screen caps from certain kinds of streams because the system streams the data directly to the videocard bypassing the videosystem of Windows itself.

What happens is this: Windows draws a black rectangle in some place where the video needs to be displayed. It then starts sending video data directly towards the videocard. The videocard on it's turn then merges the normal video screen it receives from Windows with the video data it receives through the stream. The videocard determines the location of a black rectangle and fills this area with the video data.
The result is that Windows speeds up the processing of video data a lot faster, since it's the hardware itself decoding the MPG data. If Windows had to decode it itself, the processor would be too busy decoding, thus would slow down the system enormously.
Compare this to the blue-screen techniques that are used for movies. The actor acts in front of a blue screen and the blue is then replaced with some other images.

Is there a way to capture the video data? Not as far as I know. I believe it's related to the use of DirectX, though.
0
 
LVL 4

Author Comment

by:Palamedes
Comment Utility
Oh..wow.. thanks Alex..  I didn't realize it worked that way..

So there is absolutely no way to directly copy the information from the card?  I realize this would probably take some serious programming..
0
 
LVL 17

Expert Comment

by:Wim ten Brink
Comment Utility
I don't think it's possible, although I'm not 100% sure. It could be that through DirectX or some other technique, you can still get the screen contents. But with DirectX, the CPU just lets the videocard do most of the processing and the videocard does not send the screen information back to the system. So I fear it's not possible.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now