Synchronizing captured and rendered frames
From: clarbak (clarbak_at_hotmail.com)
Date: 03/10/04
- Next message: xdirector: "Debugging DirectX"
- Previous message: Thore Karlsen [MVP DX]: "Re: Turning record on and off"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 11 Mar 2004 01:12:23 +1100
I have setup a filter graph as follows:
File Source (Async) -> AVI Splitter -> SampleGrabber -> MJPEG
Decompressor -> Video Renderer
What I am trying to do is display a AVI file stream in 2 preview windows at
once but they must
be synchronized frame for frame. That is, if I pause the filter graph, both
windows should have
exactly the same frame displayed. The filter graph I have above does not do
this as the frame
captured from the SampleGrabber is usually one frame ahead of the frame
displayed by the
Video Renderer. The reason I want to use the SampleGrabber is because I want
the option to
save the current frame to a file when the playback is paused.
I have tried using a graph like this:
File Source (Async) -> AVI Splitter -> Infinite Pin Tee -> MJPEG
Decompressor -> Video Renderer
-> MJPEG Decompressor -> Video Renderer
This graph usually results in synchronized frames but sometimes when I pause
the graph different
frames appear in the two windows (at least in GraphEdit). It is essential
that the frames are
synchronized. Also, the second graph doesnt allow me to capture the current
frame.
Does anyone have any better ideas as to how to solve this problem? Thanks.
Regards,
Clarence.
- Next message: xdirector: "Debugging DirectX"
- Previous message: Thore Karlsen [MVP DX]: "Re: Turning record on and off"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|