Solved

Screen Cap WITH Media Player Content?

Posted on 2004-10-08
3
174 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
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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