Thanks,
Supriya.
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4634 (20091124) __________
The message was checked by ESET NOD32 Antivirus.
> I am using hook to capture Windows Media Player overlay
> surface. I tried to hook DirectDrawCreate() in ddraw.dll.
> But
> DirectDrawCreate() is not called by wmp.
> Can somebody let me know which methods to hook in
> ddraw.dll to capture the video frame.
Since v9 of WMP, it will use Direct3D9 if available. Are you
sure yours is using a DirectDraw overlay surface? It's easy
to discover: if you can grab the picture using the
PrintScreen key, it is *not* an overlay,
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
Thanks.
"Alessandro Angeli" <nob...@nowhere.in.the.net> wrote in message
news:eQrsdPfb...@TK2MSFTNGP05.phx.gbl...
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4636 (20091125) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4636 (20091125) __________
None. Remember, there is no "CopyImage" API that gets called. The app
calls DirectDraw or Direct3D originally, and gets a pointer to an overlay
surface or a texture. After that, the app just draws frames directly into
the overlay or texture memory as if it were another chunk of memory. You
can't intercept that.
Look, you need to face a simple fact here. Hollywood does not want you to
be able to copy individual frames from videos, because it makes it way too
easy to pirate copyrighted material. Hollywood's lawyers have strong-armed
Microsoft's engineers into making that very difficult. They are WAY
smarter than you are.
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
"Tim Roberts" <ti...@probo.com> wrote in message
news:gkmug5hu59ubeli4e...@4ax.com...
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4640 (20091126) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4640 (20091126) __________
> Thanks for your response.
> I am sure that my WMP is using overlay.I tested with
> PrintScreen. It is giving blank picture.
> If I uncheck "Use Overlays" option, I am able to capture
> image.
Are you running on XP or Vista?
Are you playing a DRM-protected WMV video?
Can other screen capture apps grab the overlay?
Remember that, to hook the overlay surface, you *must* do it
from inside WMP's process, not yours, which means that you
need to inject your code in that process and that usually
requires that your app runs before WMP starts.
"Alessandro Angeli" <nob...@nowhere.in.the.net> wrote in message
news:%23KEV$z4bKH...@TK2MSFTNGP06.phx.gbl...
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4641 (20091127) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4647 (20091129) __________
> I am working on XP and some applications able to capture
> the overlay while capturing screen.
Then you should be able to do it if you follow the
guidelines in my previous message.
"Alessandro Angeli" <nob...@nowhere.in.the.net> wrote in message
news:unSMpQf...@TK2MSFTNGP05.phx.gbl...
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4650 (20091130) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4650 (20091130) __________