Solved

Screen Cap WITH Media Player Content?

Posted on 2004-10-08
3
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
Wim ten Brink earned 50 total points
ID: 12272033
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
ID: 12277226
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
ID: 12285599
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

691 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