Images doesn't appear under ZM monitors

Support and queries relating to all previous versions of ZoneMinder
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

Images doesn't appear under ZM monitors

Post by lepapou »

Hello,
First excuse me for my bad English.
I've just install last ZM and, after many problems of configuration resolved with this forum or Wiki, my ZM seems to be working except for images that are not displayed.
I'm under Mandriva 2007.1, mysqld and httpd services are running and I use Firefox.
Like this forum (or Wiki ?) suggest, I've installed Cambozola and puted it in the same directory of ZM php files. I've also change its rights with "chmod 775".
When I run monitor window of images, Java symbol is displayed brievly then following message appear :

Code: Select all

java.io.FileNotFoundException:http://localhost/var/www/cgi-bin/nph-zms?mode=jpeg&monitor=2&scale=150&maxfps=5&rand=1185394218 
I precise that this forum also suggest that Apache and ZM configuration files point in the same cgi directory, so I did : my common directory for two is var/www/cgi-bin. An other suggestion that I've done is to add ".cgi" extension for the two files "nph-zms" and "zms".
My two cameras are : first an analogic camera pluged on an ASUS TV card (composite socket), second a Webcam wich works with an "ov519" driver. The two are working fine under TVtime viewer or Xawtv.
Here is command wich list them.

Code: Select all

[root@localhost maison]# zmu -d /dev/video0 -q -v
Video Capabilities
  Name: ASUSTeK P7131 Dual
  Type: 47
    Can capture
    Can tune
    Does teletext
    Overlay onto frame buffer
    Can clip
  Video Channels: 3
  Audio Channels: 0
  Maximum Width: 720
  Maximum Height: 578
  Minimum Width: 48
  Minimum Height: 32
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 0
  Height: 0
Picture Attributes
  Palette: 4 - 24bit RGB
  Colour Depth: 0
  Brightness: 32896
  Hue: 32896
  Colour :33026
  Contrast: 35090
  Whiteness: 0
Channel 0 Attributes
  Name: Television
  Channel: 0
  Flags: 1
    Channel has a tuner
  Type: 1 - TV
  Format: 0 - PAL
Channel 1 Attributes
  Name: Composite1
  Channel: 1
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL
Channel 2 Attributes
  Name: S-Video
  Channel: 2
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL

[root@localhost maison]# zmu -d /dev/video1 -q -v
Video Capabilities
  Name: OV519 USB Camera
  Type: 513
    Can capture
    Can capture subareas of the image
  Video Channels: 1
  Audio Channels: 0
  Maximum Width: 640
  Maximum Height: 480
  Minimum Width: 64
  Minimum Height: 48
Window Attributes
  X Offset: 0
  Y Offset: 0
  Width: 640
  Height: 480
Picture Attributes
  Palette: 10 - YUV420
  Colour Depth: 12
  Brightness: 32768
  Hue: 0
  Colour :32768
  Contrast: 31744
  Whiteness: 26880
Channel 0 Attributes
  Name: Camera
  Channel: 0
  Flags: 0
  Type: 2 - Camera
  Format: 0 - PAL
Thank's very much for any help : I became so discouraged that I envisage create a dediate server under windows. Please prevent myself to do this !
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: Images doesn't appear under ZM monitors

Post by cordel »

lepapou wrote:

Code: Select all

java.io.FileNotFoundException:http://localhost/var/www/cgi-bin/nph-zms?mode=jpeg&monitor=2&scale=150&maxfps=5&rand=1185394218 
I precise that this forum also suggest that Apache and ZM configuration files point in the same cgi directory, so I did : my common directory for two is var/www/cgi-bin. An other suggestion that I've done is to add ".cgi" extension for the two files "nph-zms" and "zms".
First look at the path.... http://localhost/var/www/cgi-bin/nph-zms
Check your path setting for zms, it sould be cgi-bin/zms and not the system path.
Second, I don't know where you seen to add cgi extension, this is incorrect and the executables do not need a extention.

Third for your asus card you should set /dev/video0 and channel 1 for your composite input and start with a small image like 320x240.
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

Post by lepapou »

Hello Cordel, thank's for your quick respons.
The path in ZM is good (/var/www/cgi-bin/nph-zms )...
Another information : when I want to see images on ZM monitors, a toolbar (Java ?) appear with six buttons (Home, zoom -, zoom+, movements, Informations and Cambozola help). Only two last buttons are activ. It's near that tool bar that message "java.io.File..." appear.
Thank's [/img][/quote]
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

Post by lepapou »

Last news : when I clic on the "Zones" button (wich define capture zones) a fix image of my analogic cam appear (but not with my webcam)... It's not desesparated !
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

No displaying in Monitor : motion could work ?

Post by lepapou »

Hello,
Always no display though I've verify all that "Cordel" told to me :
- path of cgi-bin in zm (/var/www/cgi-bin/nph-zms)
- cgi extension of nph-zms and zms which I've suppress (i've seen that somewhere in this forum...)
- asus card (composite input) is set on /dev/video0 - channel 1 and image is 320x240
As I said in my last post : I've a fix image in the "Zones" button (wich define capture zones), but always no streaming in Monitor mode. Does it mean that motion detect is OK and I can active it although Monitor mode is'nt ok ?
Thank's
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Re: No displaying in Monitor : motion could work ?

Post by cordel »

lepapou wrote: - path of cgi-bin in zm (/var/www/cgi-bin/nph-zms)
There is a difference between what is a system path and what is a web path.
cordel wrote:Check your path setting for zms, it sould be /cgi-bin/zms and not the system path.
/var/www/cgi-bin/nph-zms is a system path.
The path option under the paths tab takes web path. Yours should be /cgi-bin/zms
It has got to be how you see the structure from the browser, not the system.
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

Post by lepapou »

OK I understand, excuse me but I'm a newbie in web server.
There is a difference between what is a system path and what is a web path.
Does it mean that it's not a problem that nph-zms and zms files, and Apache cgi files are in different physical directories :
- Apache cgi in var/www/cgi-bin
- nph-zms and zms in my home/www/cgi-bin ?
In Troubleshooting "readme.pdf" file of ZM I've seen that Apache config and ZM config must point to the same cgi-bin physical directory (maybe I did'nt really understand...)
If everything else works but you can’t get images in your browser a likely cause is a mismatch between where
your web server expects to execute CGI scripts and where you have installed the zms streaming
server. Check your server configuration for the correct CGI location and ensure you have supplied
the same directory to the ZoneMinder configure script via the –with-cgidir option
lepapou
Posts: 11
Joined: Thu Jul 26, 2007 6:14 am

Post by lepapou »

Hello it's OK now !
Thank's very much for your help.
:D
I'll test motion tools now.
Best regards
nicolas
Posts: 7
Joined: Thu Oct 11, 2007 4:33 pm

Post by nicolas »

Hello,

I have exactly the same problem.
How do you have fix this problem ?

Thank you!
;)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

The fix was to set the path correctly for zms as /cgi-bin/zms
nicolas
Posts: 7
Joined: Thu Oct 11, 2007 4:33 pm

Post by nicolas »

cordel wrote:The fix was to set the path correctly for zms as /cgi-bin/zms
Hello,

Thank you for your help. :D
I apologize for my english, i'm french. :lol:
I understand what you wrote, but i still don't know what to do. :roll:
Because, when i search zms or nph_zms in directory, i found him here :

/usr/share/zoneminder/cgi-bin/*zms

However, i understand what you mean with the apache problem.
And now i understand the message with the cambozola.jar in ie or firefox.

But i still don't know how to solve it.
Can you explain what exactly the problem is ?

I have make some custom properties to my apache2.conf because i have two sites.
But i can access to http://ip/zm/ so i think that work.

"As I said in my last post : I've a fix image in the "Zones" button (wich define capture zones), but always no streaming in Monitor mode. Does it mean that motion detect is OK and I can active it although Monitor mode is'nt ok ? "
=> Exactly same problem :?

In options => cgi-zms, i have /cgi-bin/zms, so that is the problem ?

Have you some solution for me ? :wink:

Thank you!
nicolas
Posts: 7
Joined: Thu Oct 11, 2007 4:33 pm

Post by nicolas »

I just see the path and understand it, but i have something like that :

java.io.FileNotFoundException:http://localhost/cgi-bin/nph-zms?mode=j ... rand=11853

So what ? :cry:
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If you go into options from the console, under the paths tab, there will be a place to put the path for zms. The path is entered as it is relivent to the web server as you would see in the URL. It is not ment to be set as the drive path.
so path for zms should be something like /cgi-bin/zms but this depends on how you install it and could vary a bit. The actual path would depend on how you configured apache.

The string you show though is not the same problem as the above user.

Obviously the quickest way to get this fixed would be to PM me with root shh access as at most it would take me ten minutes to go though the logs, configuration of apache, and figure out what the correct path would be based on how zm was installed, and reconfigure apache if it is required.
nicolas
Posts: 7
Joined: Thu Oct 11, 2007 4:33 pm

Post by nicolas »

Hello cordel and thank you. :)
I had a lot of work but i have check some logs in my ubuntu system and now my /var/log/apache2/error.log is empty! ;)
I have change my apache config and now i assume it's alright.

I have no error in my log. But i don't have any solution working. :(
I still don't have image in zm monitor but i have still img in zone console.

So my next question is permission in /usr/share/zoneminder.
I have :
lrwxrwxrwx 1 root root 17 2007-10-08 23:06 cgi-bin -> ../../lib/cgi-bin
lrwxrwxrwx 1 root root 28 2007-10-08 23:06 events -> /var/cache/zoneminder/events
lrwxrwxrwx 1 root root 28 2007-10-08 23:06 images -> /var/cache/zoneminder/images
lrwxrwxrwx 1 root root 6 2007-10-08 23:06 index.php -> zm.php
drwxr-xr-x 2 root root 4096 2007-10-08 23:06 graphics
-rw-r--r-- 1 root root 155714 2007-08-12 04:34 zm_create.sql
-rw-r--r-- 1 root root 318 2007-08-12 04:34 favicon.ico
drwxr-xr-x 2 root root 4096 2007-08-12 04:34 sounds
drwxr-xr-x 2 www-data www-data 4096 2007-08-12 04:34 temp
-rw-r--r-- 1 www-data www-data 49978 2007-08-12 04:34 zm_actions.php
-rw-r--r-- 1 www-data www-data 9492 2007-08-12 04:34 zm_config.php
-rw-r--r-- 1 root root 16174 2007-08-12 04:34 zm_control_funcs.php
-rw-r--r-- 1 root root 2697 2007-08-12 04:34 zm_db.php
-rw-r--r-- 1 root root 9690 2007-08-12 04:34 zm_export_funcs.php
-rw-r--r-- 1 root root 45907 2007-08-12 04:34 zm_funcs.php
-rw-r--r-- 1 root root 8131 2007-08-12 04:34 zm_html_config.php
-rw-r--r-- 1 root root 3101 2007-08-12 04:34 zm_html.php
What do you think about that ?

My second question is about cambozola.jar :

It's telling me access denied.
What do you think about this ?
Do you think i have to tried without cambozola ? ffmpeg or mpeg or none ?
I don't now about this.

Lot of thank you ! ;)

Nico
nicolas
Posts: 7
Joined: Thu Oct 11, 2007 4:33 pm

Post by nicolas »

zmu -l give me :

root@neo-desktop:~# zmu -l
Id Func State TrgState LastImgTim RdIdx WrIdx LastEvt FrmRate
10 2 0 0 1192485386.22 -1 31 0 1.90

but zmc give me :

root@neo-desktop:~# zmc -d /dev/video0
root@neo-desktop:~# zmc -d /dev/video1
root@neo-desktop:~#

so, i 'm scared about your opinion. :$
Locked