Capture Graph with VMR9 in Windowless mode
- From: Colin White <colin@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 15 Mar 2007 00:22:04 GMT
Hi
I have the following capture graph controlled by my app
Capture Source ->Smart Tee (preview) -> CSC -> VMR9
-> Smart Tee (capture) -> AVI MUX -> File Writer
The VMR9 is in in Windowless mode
Everything works fine most of the time. However if the screensaver
kicks back to login - after signing back in, the graph is stopped and
restarted by the FGM outside the control of my app. This results in
any frames written to the avi file prior to the screen saver kicking
in being lost, as the stop/re-start causes the file writer to seek to
the start of the file and continue, which over-writes those originally
present at the start.
I was hoping I could trap this event and head off the problem by
handling the EC_VMR_RENDERDEVICE_SET event by flushing the file writer
and opening a new file. However, this is posted AFTER the
stop/restart, so the damage is already done.
I have read the docs on 'Using the Video Mixing Renderer ' and 'VMR
Windowless Mode' and I'm following the recommendations relating to
WM_PAINT, WM_DISPLAYCHANGE, and WM_SIZE.
I've googled extensively for this problem and can't find a match. (I
see Geraint may be facing a similar challenge with the GMF Bridge when
using more than one monitor)
Anyone got any ideas?
Thanks
.
- Follow-Ups:
- Re: Capture Graph with VMR9 in Windowless mode
- From: Geraint Davies
- Re: Capture Graph with VMR9 in Windowless mode
- Prev by Date: Audio Timestamp Issue
- Next by Date: Re: Using GraphEdt.exe/PropPage.dll from Windows SDK for Vista on XP/S
- Previous by thread: Audio Timestamp Issue
- Next by thread: Re: Capture Graph with VMR9 in Windowless mode
- Index(es):
Relevant Pages
|
Loading