Synchronize 2 Capture Sources into one Stream to Display 3D
- From: "Friedemann Wolpert" <apslive@xxxxxxx>
- Date: Fri, 9 May 2008 03:35:08 +0200
Hi !
I try to synchronize 2 USB Webcams each one Captures at 30fps, I built a
Filter with 2 Inputs and one Output (Big Thanks to Ralf G), my Goal is to
achieve one constant stream with 60fps, to display 3D Content, using the
Serial Port to control a Shutterglass using a Custom Allocator/Presenter.
I managed to set the new Framerate, but the Sample length is dependant on
the start time of each device. So that the frames, don't display synced. How
can that be achieved ? (Custom clock ?, custom buffers, setting new output
sample times, ...) Any help would be appreciated.
Also combining the two LiveStreams sometimes runs apart Cam1 Cam0 Cam1 Cam1
Cam0 ... which leads to lockups in the 3D View. This happens already in the
Interlace 2In/1Out Filter. Do incoming frames get lost when a CAutoLock is
applied on the Receive Function ?
Another Question
how are the MediaSample Times and the ReferenceClock related ?
Reference Clock is Enabled
Current Camera: 0, TRefStart 258790305, TRefStop 258956971, TRefCurrent
120917410000
Current Camera: 1, TRefStart 259071508, TRefStop 259238174, TRefCurrent
120917700000
When asking for the Current Time of the Reference Clock I get Values like
120917700000 but the TimeStamp on the Sample is printed as TRefStart
259071508, TRefStop 259238174 .
Long list of Questions, I'd be really thankfull for comments.
Greetings Friedemann
.
- Follow-Ups:
- Prev by Date: Re: TS application?
- Next by Date: Re: Query on Windows CE Video Renderer related to MaxBackBuffers!
- Previous by thread: Newb question: changing video capture resolution
- Next by thread: Re: Synchronize 2 Capture Sources into one Stream to Display 3D
- Index(es):
Relevant Pages
|