vlamak

Hi,

I am writing a small "Capture from WebCam" application and I have notices that if my webcam is facing some surface (w/o movement) the BufferCB is not called in my callback. Also, when I rapidly move it around, the BufferCB is called. Is this correct that BufferCB is called only if the frames are changing (like in Motion Detection)

Please give me more details.

Also, Is there a way to capture something from a script, if yes - please tell me the interfaces available to scripting lanuages. BTW, I have tried WIA, but it doesn't work on my machine (even the scanner and camera wizard) cannot capture anything.

Thank You,

Vlad.


Re: DirectShow Development Is ISampleGrabberCB::BufferCB is called only on Motion Detection?

Thore Karlsen

No, you should get a callback for every frame that passes through the sample grabber. The other explanation is that your webcam only generates frames when there's motion, which sounds strange, but I guess it's possible. When there's no motion, does the frame look completely static Can you detect any movement in the noise or anything like that





Re: DirectShow Development Is ISampleGrabberCB::BufferCB is called only on Motion Detection?

vlamak

I don't know if the frame is static or not if there is no motion. The webcam is the cheapest Logitech QuickCam IM. My graph has 4 filters: Webcam(CAPTURE_PIN)<---->Sample Grabber<---->Null Renderer, and Webcam(STILL_PIN)<---->Null Renderer.

In my program I just print a msg within the Buffer CB, and it happens that this msg is printed if the frames are changing.

Thore Karlsen: I will replace the Null Renderer with the VMR and see what happens.