Synchronize 2 Capture Sources into one Stream to Display 3D



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



.



Relevant Pages

  • find time difference between audio renderer clock & system clock
    ... Regarding a past post "I wound up getting the reference clock using ... IMediaFilter::GetSyncSourceto get an IReferenceClock pointer then I ... IReferenceClock inside of my filter, ... Does this entail going through the audio output pin ...
    (microsoft.public.win32.programmer.directx.audio)
  • find time difference between audio renderer clock & system clock
    ... Regarding a past post "I wound up getting the reference clock using ... IMediaFilter::GetSyncSourceto get an IReferenceClock pointer then I ... IReferenceClock inside of my filter, ... Does this entail going through the audio output pin ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Live Source Filter Video and Audio Synchronization
    ... Then when I'am trying to run the graph it again prompt the message ... How can I forced the graph to chose my filter as its reference clock? ... Implement this interface if you are writing a filter ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Timing confusion in live source filter
    ... However, when I plug the output from my filter into a file writer, it ... And being able to be used by a render and a ... does anyone know what the reference clock in the ...
    (microsoft.public.win32.programmer.directx.video)