Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 580
  • Last Modified:

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.
0
qualvis
Asked:
qualvis
1 Solution
 
bkfirebirdCommented:
DirectShow is the way to go ..... it is very easy to capture stills and video .....  you just need to understand a little about graphs in directx .... check out the directshow sample called StillCap ..... it does pretty much what you need
0
 
qualvisAuthor Commented:
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
 
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now