Issues with streaming

Forum for questions and support relating to the 1.24.x releases only.
Locked
marcus87
Posts: 6
Joined: Wed Feb 16, 2011 10:34 pm
Location: Milan, Italy

Issues with streaming

Post by marcus87 »

Hello,
I have an issue with Zoneminder on a Ubuntu server machine and a UVC Webcam (Logitech c250).

It is about video streaming. The cam works, and I can see events and even export video files, but it is impossible to see a live video streaming.
I tried both jpeg and mjpeg methods, I tried Internet Explorer and Firefox but nothing happens.

This is what I see with jpeg streaming
Image

and this is what I see with mjpeg with .swf extension (tried following this HOW TO: http://www.zoneminder.com/forums/viewtopic.php?p=66557)
Image

The text in the red circle means "the video has not been loaded".

As you can see in the following image events are stored correctly and I can see images, and I can even generate a movie.
Image


I even modified /etc/sysctl.conf adding these lines

Code: Select all

kernel.shmall = 33554432
kernel.shmmax = 536870912
but nothing has changed.

I think that is not a webcam issue because I had an IP camera (that I sold a few weeks ago) that had exactly the same issue.

Is there a solution or I have to call an exorcist? :)

I tried to search in this forum and in google but nothing has helped me...

Thanks a lot. Any help would be appreciated.

PS: I'm Italian, really sorry for my terrible english.
marcus87
Posts: 6
Joined: Wed Feb 16, 2011 10:34 pm
Location: Milan, Italy

Post by marcus87 »

I have also followed this FAQ, but: first, I am not using Internet explorer so I do not need Cambozola at the moment, isn't it?
About the second point I tried everything:
-moving the streaming server files in another location (where I actually use to put cgi-bin scripts) updating the PATH_ZMS option;
-I changed the "ScriptAlias" section in my httpd.conf file (ScriptAlias /cgi-bin/ "/usr/share/zoneminder/cgi-bin/").

And what is --with-cgidir?


I need to make streaming work. Is there anything I can do? :?: :(

Thanks a lot!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Have you looked in your web error logs. It's possible there might be something in there. I would suspect that it is a misconfiguration in how cgi is handled by apache.
Phil
marcus87
Posts: 6
Joined: Wed Feb 16, 2011 10:34 pm
Location: Milan, Italy

Post by marcus87 »

Thanks for your reply,

these are two lines extracted from my error log of apache:

Code: Select all

[Fri Feb 18 10:24:55 2011] [error] [client 192.168.1.15] socket_sendto( /tmp/zms-052526s.sock ) failed: No such file or directory, referer: http://www.mywebsite.it/zm/index.php?view=watch&mid=3

[Fri Feb 18 10:24:55 2011] [error] [client 192.168.1.15] array (\n  0 => \n  array (\n    'file' => '/usr/share/zoneminder/ajax/stream.php',\n    'line' => 51,\n    'function' => 'ajaxError',\n    'args' => \n    array (\n      0 => 'socket_sendto( /tmp/zms-052526s.sock ) failed: No such file or directory',\n    ),\n  ),\n  1 => \n  array (\n    'file' => '/usr/share/zoneminder/index.php',\n    'line' => 116,\n    'args' => \n    array (\n      0 => '/usr/share/zoneminder/ajax/stream.php',\n    ),\n    'function' => 'require_once',\n  ),\n), referer: http://www.mywebsite.it/zm/index.php?view=watch&mid=3
these are repeated each time I try to open the streaming video of my camera. I can't understand what's happening reading this error code, but it seems related with the video streaming.

Any suggestion? :roll:
marcus87
Posts: 6
Joined: Wed Feb 16, 2011 10:34 pm
Location: Milan, Italy

Post by marcus87 »

Today I tried installing cambozola. I put cambozola.jar into the zoneminder directory, but with IE instead of stream I can see only the plugin's name and author. I also tried with

Code: Select all

chmod 775 cambozola.jar
but no change.

I even tried configuring my apache2. I found this topic. The user that had posted had a problem similar to mine. I tried to follow the discussion but it didn't solved my issue.
marcus87
Posts: 6
Joined: Wed Feb 16, 2011 10:34 pm
Location: Milan, Italy

Post by marcus87 »

Solved:
just unistalled and did a new install.

Some issues but now everything works fine.

Just a note: with apt-get ubuntu installed version 1.24.1
Locked