Page 1 of 1

Source Type: Executable

Posted: Mon Apr 14, 2008 6:14 pm
by wasabi
I'd basically like to easily write a script to retrieve a jpeg without having to go through the hassel of exposing it on a local port and parsing HTTP and such.

So, I suggest a executable script. It could support jpeg and mjpeg. Image would be returned on stdout. Very easy. Probably a few minutes work. In fact I'm going to take a look at it right now.

Posted: Tue Apr 15, 2008 11:54 am
by MJN
Does ZMU not meet your needs, e.g. zmu -m 1 -i snapshot.jpg ?

Mathew

Posted: Tue Apr 15, 2008 4:51 pm
by wasabi
I don't know what that's supposed to do.

Posted: Tue Apr 15, 2008 4:53 pm
by wasabi
Oh I think you misinterpreted what I asked for because I asked it poorely.

I want to add a Monitor to zoneminder whose source is an executable. Zoneminder would execute it to retrieve frames.

Posted: Tue Apr 15, 2008 4:53 pm
by wasabi
Also, I've actually succeeded in doing this. Going to post a patch as soon as I figure out where I should post it.

Posted: Thu Apr 24, 2008 6:30 am
by lonewolf
I'm VERY interested in this! Right now I'm outputting the stream to a fifo which I'm then reading in via a very crude script using the same webserver ZM is running on...

"mencoder -o stream1.fifo -of rawvideo -ac null -oac pcm -ovc lavc -lavcopts vcodec=mjpeg rtsp://172.19.13.200" FTW!

/LW