Source Code for Viewing

A place for discussion of topics that are not specific to ZoneMinder. This could include Linux, Video4Linux, CCTV cameras or any other topic.
Post Reply
breadfan311
Posts: 1
Joined: Tue Aug 19, 2008 2:26 am

Source Code for Viewing

Post by breadfan311 »

Hi,
I have installed zoneminder with axis camera and the outcome is great. I am very interested on how the viewing of the live camera in done in zoneminder. Currently Iam trying to develop a small project by using php, to have a small screen inside the interface and have the picture taken and ftp to my server and I am not sure whether I can borrow the source code for this feature from zoneminder. If I can, where can I view the source code and is zoneminder develop using php. Your help is much appreciated. Thanks!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Zoneminder is C, C++, Perl, BASH, and the interface is php.
As to the rest of you questions you will need to talk to Phil.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Viewing is done via the zms cgi process. This can generate mpeg, mpjpeg or single jpeg streams. There are a number of php functions which help generate the correct url parameters to pass depending on the type of stream requested and the capabilities of the browser.

The simplest thing to do is probably to look at zm_html_view_watchfeed.php, which is quite a small file, and go from there.
Phil
Post Reply