Video Playback Error in events feature-h264-videostorage
Posted: Wed Aug 02, 2017 3:53 am
I installed ZoneMinder 1.31.3 from ppa:iconnor/zoneminder-storageareas in Ubuntu 16.04.02 usinghttps://wiki.zoneminder.com/Shell_script_zm_install and directly using just apt-get install zoneminder, both methods the ZoneMinder worked partially, I could add a monitor using rtsp h264 onvif, watch real-time video camera in browser and record the events through Modect and H264 Camera Passthrough with no sound, the file is recorded but I can't watch it in browser, I can watch the video opening the file in VLC. I see a black image in browser with the message The video could not be loaded, either because the server or network failed or because the format is not supported. The errors are:
In browser:
And in log:
Configuration in /etc/zm/conf.d/01-system-paths.conf
Configuration in /etc/apache2/conf-enabled/zoneminder.conf
The owner of symbolic link nph-zms was root and I got "Forbidden Access" when tried http://localhost/zm/cgi-bin/nph-zms, when I changed the owner, the message in browser stopped but the error is the same. /usr/lib/zoneminder/cgi-bin
I tried other configurations for ZM_PATH_ZMS but the default seems ok. I spent hours reading a lot of posts in this forum and in the internet but nothing I tried have worked. Is there any other configuration I must check?
In browser:
Code: Select all
Request URL:http://localhost/zm/index.php?view=view_video&eid=1
Request Method:GET
Status Code:404 Not Found
Remote Address:localhost:80
Referrer Policy:no-referrer-when-downgrade
Code: Select all
Date/Time Component PID Level Message File Line
2017-08-02 00:25:04.045457 web_js 36848 ERR getCmdResponse stream error: Socket /var/run/zm/zms-459334s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. - checkStreamForErrors() ?view=event
2017-08-02 00:25:04.025566 web_php 36848 ERR Socket /var/run/zm/zms-459334s.sock does not exist. This file is created by zms, and since it does not exist, either zms did not run, or zms exited early. Please check your zms logs and ensure that CGI is enabled in apache and check that the PATH_ZMS is set correctly. Make sure that ZM is actually recording. If you are trying to view a live stream and the capture process (zmc) is not running then zms will exit. Please go to http://zoneminder.readthedocs.io/en/latest/faq.html#why-can-t-i-see-streamed-images-when-i-can-see-stills-in-the-zone-window-etc for more information. /usr/share/zoneminder/www/includes/functions.php 2032
2017-08-02 00:25:02.275262 web_js 36846 ERR Uncaught TypeError: Cannot read property 'hasClass' of null http://192.168.1.106/zm/skins/classic/views/js/event.js 214
2017-08-02 00:25:01.767502 web_js 36851 ERR Uncaught ReferenceError: addVideoTimingTrack is not defined http://192.168.1.106/zm/index.php?view=event 184
2017-08-02 00:24:57.224882 web_js 36854 ERR Uncaught TypeError: Cannot read property 'isDisplayed' of undefined http://192.168.1.106/zm/tools/mootools/mootools-more.js 1
Code: Select all
ZM_DIR_EVENTS=/var/cache/zoneminder/events
ZM_DIR_IMAGES=/var/cache/zoneminder/images
ZM_DIR_SOUNDS=sounds
ZM_DIR_EXPORTS=/tmp/zm
ZM_PATH_ZMS=/zm/cgi-bin/nph-zms
ZM_PATH_MAP=/dev/shm
ZM_PATH_SOCKS=/var/run/zm
Code: Select all
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
<Directory /usr/share/zoneminder/www/api>
AllowOverride All
</Directory>
Code: Select all
0 lrwxrwxrwx 1 www-data www-data 3 Jul 31 13:14 nph-zms -> zms
1540 -rwxrwxrwx 1 www-data www-data 1574176 Jul 31 13:14 zms