Link to home
Start Free TrialLog in
Avatar of qualvis
qualvis

asked on

Camera project: mjpeg, jpg to avi ... ?

Hello, I am a student working on a camera surveillance project and I am trying to write an
application that will be able to use any camera regardless of its vendor.

I have an axis PTZ 2130 camera to work with, and I have the ActiveX control for this camera that displays the MJPEGs being pushed from the camera.

If I want to periodically grab one of those JPEG being pushed from the
camera what would be the best way to do it. I know I want to use DirectShow.
But I'm not quite sure how to go about doing it.

Any help would be much appreciated, thanks.
ASKER CERTIFIED SOLUTION
Avatar of bkfirebird
bkfirebird

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of qualvis
qualvis

ASKER

Well, I've been working for a few weeks with directshow, and working whith the capture graph isn't really a problem anymore.

its the parsing of these Jpegs that troubles me. I Have no idea how to make a stream out of these and using them with in Directshow. (the opposite of StillCap I think Actually).
I use Wininet to download one jpeg and save it to a file at a time, and I can show this with using RenderFile(c:\\"example.jpg") or something. I just don't know how to stream these jpegs. (the camera has a webserver where a jpeg image is refreshed constantly).

I've been trying to understand the PushSource sample filter, but it seems pretty difficult, and I'm not sure it will do the trick.

thanks for the reply btw