Page 1 of 1

LIVE View as MP4

Posted: Tue Sep 29, 2020 2:48 pm
by gblanco
Stream as MP4 works like a charm in evensts but dont work in live view:


Sep 29 11:45:39 localhost web_php[3449]: ERR [Socket /var/run/zm/zms-464357s.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/lat ... window-etc for more information.]

I´m using a orangepi with armbian on Debian Buster. Any advice ?

Re: LIVE View as MP4

Posted: Wed Sep 30, 2020 4:29 pm
by gblanco
Any tips ?

Re: LIVE View as MP4

Posted: Thu Oct 01, 2020 12:12 am
by bbunge

Re: LIVE View as MP4

Posted: Thu Oct 01, 2020 2:01 am
by burger
Try mjpeg instead of mp4 codec.

Re: LIVE View as MP4

Posted: Thu Oct 01, 2020 2:04 pm
by gblanco
In Events MP4 stream works beatiful. In Live there is no way.

Re: LIVE View as MP4

Posted: Fri Oct 02, 2020 3:12 am
by burger
Different browser? Different OS (joking)?

Re: LIVE View as MP4

Posted: Sat Oct 03, 2020 8:04 pm
by gblanco
Joking ? I don't have time to joke.

Streaming via Mp4 does not work in live view mode. Does not work on chrome, firefox or even EDGE.

The funny thing is that it works on the event screen.

Re: LIVE View as MP4

Posted: Sat Oct 03, 2020 8:12 pm
by gblanco
EVENTS MP4:

Image


LIVE VIEW MP4

Image

Re: LIVE View as MP4

Posted: Sat Oct 03, 2020 8:39 pm
by gblanco
==> web_php.log <==
10/03/20 17:37:42.213738 web_php[15049].ERR [192.168.0.16] [Socket /var/run/zm/zms-595031s.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/lat ... window-etc for more information.] at /usr/share/zoneminder/www/includes/functions.php line 2177
10/03/20 17:37:42.236303 web_php[15049].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:42.239657 web_php[15049].DBG [192.168.0.16] [View: request Request: log Action: User: admin] at /usr/share/zoneminder/www/index.php line 213

==> web_js.log <==
10/03/20 17:37:42.241935 web_js[15049].ERR [192.168.0.16] [getStreamCmdResponse stream error: Socket /var/run/zm/zms-595031s.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/lat ... window-etc for more information. - checkStreamForErrors()] at ?view=watch line

==> web_php.log <==
10/03/20 17:37:42.244272 web_php[18012].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:42.246189 web_php[18012].DBG [192.168.0.16] [View: watch Request: Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
10/03/20 17:37:43.242944 web_php[15049].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:43.246165 web_php[15049].DBG [192.168.0.16] [View: request Request: stream Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
10/03/20 17:37:43.248748 web_php[15049].DBG [192.168.0.16] [Sending command 99] at /usr/share/zoneminder/www/ajax/stream.php line 54
10/03/20 17:37:43.636233 web_php[18012].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:43.638021 web_php[18012].DBG [192.168.0.16] [View: request Request: status Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
10/03/20 17:37:43.871318 web_php[18012].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:43.873272 web_php[18012].DBG [192.168.0.16] [View: request Request: stream Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
10/03/20 17:37:43.875645 web_php[18012].DBG [192.168.0.16] [Couldn't get semaphore] at /usr/share/zoneminder/www/ajax/stream.php line 157
10/03/20 17:37:44.434923 web_php[15049].ERR [192.168.0.16] [Socket /var/run/zm/zms-595031s.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/lat ... window-etc for more information.] at /usr/share/zoneminder/www/includes/functions.php line 2177
10/03/20 17:37:44.903912 web_php[18012].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:44.906266 web_php[18012].DBG [192.168.0.16] [View: request Request: stream Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
10/03/20 17:37:44.909221 web_php[18012].DBG [192.168.0.16] [Sending command 99] at /usr/share/zoneminder/www/ajax/stream.php line 54
10/03/20 17:37:46.138557 web_php[18012].ERR [192.168.0.16] [Socket /var/run/zm/zms-496714s.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/lat ... window-etc for more information.] at /usr/share/zoneminder/www/includes/functions.php line 2177
10/03/20 17:37:46.174560 web_php[18012].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:46.177486 web_php[9669].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:46.179425 web_php[18012].DBG [192.168.0.16] [View: request Request: log Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
10/03/20 17:37:46.179855 web_php[9669].DBG [192.168.0.16] [View: watch Request: Action: User: admin] at /usr/share/zoneminder/www/index.php line 213

==> web_js.log <==
10/03/20 17:37:46.181951 web_js[18012].ERR [192.168.0.16] [getStreamCmdResponse stream error: Socket /var/run/zm/zms-496714s.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/lat ... window-etc for more information. - checkStreamForErrors()] at ?view=watch line

==> web_php.log <==
10/03/20 17:37:47.170197 web_php[18012].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:47.171896 web_php[18012].DBG [192.168.0.16] [View: request Request: stream Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
10/03/20 17:37:47.173796 web_php[18012].DBG [192.168.0.16] [Sending command 99] at /usr/share/zoneminder/www/ajax/stream.php line 54
10/03/20 17:37:47.713783 web_php[9669].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:47.715791 web_php[9669].DBG [192.168.0.16] [View: request Request: stream Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
10/03/20 17:37:47.719025 web_php[9669].DBG [192.168.0.16] [Couldn't get semaphore] at /usr/share/zoneminder/www/ajax/stream.php line 157
10/03/20 17:37:48.356688 web_php[18012].ERR [192.168.0.16] [Socket /var/run/zm/zms-496714s.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/lat ... window-etc for more information.] at /usr/share/zoneminder/www/includes/functions.php line 2177
10/03/20 17:37:48.391491 web_php[9669].DBG [192.168.0.16] [Setting cookie parameters to lifetime(3600) path(/) domain () secure() httpOnly(1) name:ZMSESSID] at /usr/share/zoneminder/www/includes/session.php line 20
10/03/20 17:37:48.394070 web_php[9669].DBG [192.168.0.16] [View: request Request: status Action: User: admin] at /usr/share/zoneminder/www/index.php line 213
^C

Re: LIVE View as MP4

Posted: Sat Oct 03, 2020 8:44 pm
by gblanco
Live View (JPEG):

Image