No video on ubuntu 14.04 *Solved*
Posted: Fri Feb 20, 2015 6:44 am
So I've googled around for this, and found tons of people who had the same problem, but none of the solutions that worked for them are working for me. This is a fresh install of ubuntu server 14.04, so the only changes from the stock apache config are either in the directions for zoneminder, or things I'll outline below that I tried.
I'm trying to get a trendnet TVIP572PI to work with RTSP as per the directions from the wiki. I can access the stream from the camera in gnome video player at rtsp play1.sdp URL from my desktop, so I know the camera's working.
I've followed the zone minder ubuntu 14.04 the easy way directions to the letter
I've also tried everything listed in a launchpad bug report that, the forums are won't let me post a link for, since I'm new.
Adding "ScriptAlias /cgi-bin /usr/share/zoneminder/cgi-bin" to the /etc/zm/apache.conf file
and the following
In the logs. When I try to access the stream in zoneminder, it's of course just an empty box with the blank image icon in the top left.
here's the /etc/zm/apache.conf, I've tried it with and without the ScriptAlias line.
I found another ScriptAlias in /etc/apache2/conf-available/serve-cgi-bin.conf and have tried commenting it out. CGI is definitely enabled, I can see in the logs
/var/run/zm and /tmp/zm look to have the right permissions.
Let me know if any other logs or info would help.
Doh. I had the wrong source type for the camera. Works fine now.
I'm trying to get a trendnet TVIP572PI to work with RTSP as per the directions from the wiki. I can access the stream from the camera in gnome video player at rtsp play1.sdp URL from my desktop, so I know the camera's working.
I've followed the zone minder ubuntu 14.04 the easy way directions to the letter
I've also tried everything listed in a launchpad bug report that, the forums are won't let me post a link for, since I'm new.
Adding "ScriptAlias /cgi-bin /usr/share/zoneminder/cgi-bin" to the /etc/zm/apache.conf file
and the following
But am still seeing this in the apache logs1) Keep the default zone apache.conf without the ScriptAlias.
2) Stop both zoneminder and apache2
sudo service apache2 stop
sudo service zoneminder stop
2) Remove any stale sockets from /tmp/zm (default location):
sudo rm -vf /tmp/zm/*.*
3) sudo a2enmod cgi
4) Start zoneminder
sudo service zoneminder start
5) Start apache2
sudo service apache2 start
Code: Select all
ERR [socket_sendto( /var/run/zm/zms-618754s.sock ) failed: No such file or directory],
here's the /etc/zm/apache.conf, I've tried it with and without the ScriptAlias line.
Code: Select all
Alias /zm /usr/share/zoneminder
ScriptAlias /cgi-bin /usr/share/zoneminder/cgi-bin
<Directory /usr/share/zoneminder>
php_flag register_globals off
Options Indexes FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
Code: Select all
[Thu Feb 19 21:30:02.004857 2015] [mpm_prefork:notice] [pid 4798] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/5.5.9-1ubuntu4.6 configured -- resuming normal operations
Code: Select all
drwxr-xr-x 3 www-data www-data 4096 Feb 19 19:53 /tmp/zm
drwxr-xr-x 2 www-data www-data 80 Feb 19 22:05 /var/run/zm
Doh. I had the wrong source type for the camera. Works fine now.