Solved

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

Posted on 2004-05-03
3
558 Views
Last Modified: 2013-11-20
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
Comment
Question by:qualvis
3 Comments
 
LVL 4

Accepted Solution

by:
bkfirebird earned 125 total points
ID: 10978108
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
 

Author Comment

by:qualvis
ID: 10978247
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now