Windows capture card to ZM

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
gasmasher
Posts: 12
Joined: Fri May 09, 2008 6:02 pm

Windows capture card to ZM

Post by gasmasher »

I wrote a quick app for windows that will take screen shots from a (or multiple) capture card using DirectShow and make them available over HTTP. This basically turns a capture device on a windows machine into an IP camera serving single jpegs. ZM running on a linux machine can then be setup to read from the app as a remote camera or the images can just be displayed in a browser.

I tried using VLC for the same functionality but I couldn't get it to work properly and the transcoding was too much of a load. This new app uses about 1.5% of the CPU per stream capturing at 15 fps.

If there is anyone else interested I can post the exe and source this evening when I get home.
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

I've been looking for something similar. I'd appreciate if you'd share.
v1.25.0 + Ubuntu Linux 12.04 Server
gasmasher
Posts: 12
Joined: Fri May 09, 2008 6:02 pm

Post by gasmasher »

Let me know if you run into any problems. I should have mentioned it's written in pascal so the source may not do you any good but here it is.

Executable: http://64.246.24.73/ncapstrm.exe
Source: http://64.246.24.73/ncapstrm.zip

Some quick instructions since it may not be obvious:
- Set the IP to bind. 0.0.0.0 will bind to all available addresses
- Set the port. A good choice is the default 8080 if you don't already have a server using it
- Click Start to start the web server
- Select the first capture device from the Input drop down
- Type an alias in the box. I had to use an extension of .jpg to work properly so my first alias is cam0.jpg
- Click add and it should be available in your browser http://localhost:8080/cam0.jpg

I added a debug section to the bottom in case your device isn't detected. Let me know if you have to use it. You can only attach each input to one alias for now or you will get an exception.
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

My webcam is in the list, but when I click Add I get:
'Couldn't connect grabber input' and 'Couldn't connect smart pin 2'.
Otherwise, it seems promising.
v1.25.0 + Ubuntu Linux 12.04 Server
gasmasher
Posts: 12
Joined: Fri May 09, 2008 6:02 pm

Post by gasmasher »

Very political of you. Promising... but it doesn't work. ;)

Are you trying to use the Veo Observer IP cam in your sig or another one? If it is a cheap cam I'll pick one up and get it working. If not I can probably come up with a test utility to get it working if you are willing to test. It should help getting a lot of other cams working.
User avatar
robi
Posts: 477
Joined: Sat Mar 17, 2007 10:48 am

Post by robi »

gasmasher wrote:Very political of you. Promising... but it doesn't work. ;)

Are you trying to use the Veo Observer IP cam in your sig or another one? If it is a cheap cam I'll pick one up and get it working. If not I can probably come up with a test utility to get it working if you are willing to test. It should help getting a lot of other cams working.
No, it's the webcam of my laptop. It's an Asus Laptop with built-in webcamera.
v1.25.0 + Ubuntu Linux 12.04 Server
wakaley
Posts: 3
Joined: Tue Sep 30, 2008 4:12 am

i need it!!

Post by wakaley »

i am looking for similar kind of utility .. can i have that utility pls.
i tried the link u provided but didnt work.
if you can send it accross email that will be great or just give me another link which will work
it will be great help!!
thanks
my email address: wakaley@gmail.com
wakaley
Posts: 3
Joined: Tue Sep 30, 2008 4:12 am

Post by wakaley »

gasmasher wrote:Let me know if you run into any problems. I should have mentioned it's written in pascal so the source may not do you any good but here it is.

Executable: http://64.246.24.73/ncapstrm.exe
Source: http://64.246.24.73/ncapstrm.zip

Some quick instructions since it may not be obvious:
- Set the IP to bind. 0.0.0.0 will bind to all available addresses
- Set the port. A good choice is the default 8080 if you don't already have a server using it
- Click Start to start the web server
- Select the first capture device from the Input drop down
- Type an alias in the box. I had to use an extension of .jpg to work properly so my first alias is cam0.jpg
- Click add and it should be available in your browser http://localhost:8080/cam0.jpg

I added a debug section to the bottom in case your device isn't detected. Let me know if you have to use it. You can only attach each input to one alias for now or you will get an exception.

i am looking for similar kind of utility .. can i have that utility pls.
i tried the link u provided but didnt work.
if you can send it accross email that will be great or just give me another link which will work
it will be great help!!
thanks
my email address: wakaley@gmail.com
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

I'm looking for this kind of utility too!! :)
Can you post the link here or send it to my email (liviabarcelos@gmail.com) ??

I will be very thankful!!!
:wink:
assuncao
Posts: 3
Joined: Fri Feb 15, 2008 4:13 pm

Source code

Post by assuncao »

Someone can share the source code?
Thanks
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

source code

Post by liviab »

Share the source code of ZoneMinder?
It is avaiable on the package that you can download (http://www2.zoneminder.com/downloads/Zo ... 3.3.tar.gz), folder src.


:wink:
assuncao
Posts: 3
Joined: Fri Feb 15, 2008 4:13 pm

Post by assuncao »

I want the source of link http://64.246.24.73/ncapstrm.zip (is broken)
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

source code...

Post by liviab »

ohh... sorry!! :oops:
I thought it was the ZoneMinder souce code .... :?
Post Reply