Re: Capture Graph with VMR9 in Windowless mode



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
.



Relevant Pages

  • Re: How to control file writer operations for providing on request video capture?
    ... stream he is previewing is also gets written to a file in standard MPEG ... Initially I create only Preview graph and does not ... this graph and create a new graph using Infinite Tee & File Writer ... which is looks like this: Live RGB24 Source->Infinite ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: WAVDest Problem!! need help!!!
    ... When you detach the renderer you must also ... Try adding both the Wave Dest and the File Writer filter to the graph after ...
    (microsoft.public.win32.programmer.directx.audio)
  • RE: DV Camera capture graph start
    ... (verified with GraphEdit) ... Now the graph works. ... to a preview stream and file writer stream and start with the file writer ...
    (microsoft.public.win32.programmer.directx.video)
  • How to control file writer operations for providing on request video capture?
    ... stream he is previewing is also gets written to a file in standard MPEG ... Initially I create only Preview graph and does not ... this graph and create a new graph using Infinite Tee & File Writer ... which is looks like this: Live RGB24 Source->Infinite ...
    (microsoft.public.win32.programmer.directx.video)
  • Capture Graph with VMR9 in Windowless mode
    ... I have the following capture graph controlled by my app ... as the stop/re-start causes the file writer to seek to ... handling the EC_VMR_RENDERDEVICE_SET event by flushing the file writer ... Windowless Mode' and I'm following the recommendations relating to ...
    (microsoft.public.win32.programmer.directx.video)

Loading