Major a/v sync issues using Logitech webcams and directshow and dspack
Followed various MSDN methods and other peoples thinly described methods on the net and still to no avail.
Im using a logitech quick cam pro 4000 and CANNOT get the audio and video in sync. Ive tried tonnes of different methods of providing a Reference clock to keep this in sync and NOTHING has come close to working yet.
This is rather urgent for me to get this completed and its the only thing stopping me.
Oh by the way, this works fine with a Microsoft web cam but not a logitech one and its becoming rather frustrating!
All ive done for the MS cam to be in sync is
vResult := (CaptureGraph as IMediaFilter).GetSyncSource(vClock);
And the MS cam records all audio and vid in sync but not the logitech
Here is the code from the VideoCap demo application which also fails to provide syncronised content
with CaptureGraph as IcaptureGraphBuilder2 do
begin
// set the output filename
SetOutputFileName(MEDIASUBTYPE_Avi, PWideChar(CapFile), multiplexer, Writer);
// Connect Video preview (VideoWindow)
if VideoSourceFilter.BaseFilter.DataLength > 0 then
RenderStream(@PIN_CATEGORY_PREVIEW, nil, VideoSourceFilter as IBaseFilter,
nil , VideoWindow as IBaseFilter);
// Connect Video capture streams
if VideoSourceFilter.FilterGraph <> nil then
RenderStream(@PIN_CATEGORY_CAPTURE, nil, VideoSourceFilter as IBaseFilter, nil, multiplexer as IBaseFilter);
// Connect Audio capture streams
if AudioSourceFilter.FilterGraph <> nil then
begin
RenderStream(nil, nil, AudioSourceFilter as IBaseFilter, nil, multiplexer as IBaseFilter);
end;
end;
CaptureGraph.Play;
NOw this above code works fine with a microsoft web cam but directshow fails dismally on a logitech webcam.