Re: Capture Graph with VMR9 in Windowless mode
- From: Geraint Davies <geraintd@xxxxxxxxxx>
- Date: Thu, 15 Mar 2007 10:15:50 +0000
On Thu, 15 Mar 2007 00:22:04 GMT, Colin White wrote:
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
it's on my list to look at when I have some spare time. However, in this
case I think you would be ok using the bridge. The graph containing the
renderer is stopped -- but you would have the mux and file writer in a
separate graph which is therefore not stopped. You can handle the
renderdevice-set event by stopping and restarting the source graph or
whatever, and the mux/writer graph will continue ok.
G
.
- Follow-Ups:
- Re: Capture Graph with VMR9 in Windowless mode
- From: Colin White
- Re: Capture Graph with VMR9 in Windowless mode
- References:
- Capture Graph with VMR9 in Windowless mode
- From: Colin White
- Capture Graph with VMR9 in Windowless mode
- Prev by Date: Re: Audio Timestamp Issue
- Next by Date: Re: Problem with continuos Play ( playList)
- Previous by thread: Capture Graph with VMR9 in Windowless mode
- Next by thread: Re: Capture Graph with VMR9 in Windowless mode
- Index(es):
Relevant Pages
|
Loading