LIVE View as MP4

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

LIVE View as MP4

Post 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 ?
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: LIVE View as MP4

Post by gblanco »

Any tips ?
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: LIVE View as MP4

Post by bbunge »

User avatar
burger
Posts: 390
Joined: Mon May 11, 2020 4:32 pm

Re: LIVE View as MP4

Post by burger »

Try mjpeg instead of mp4 codec.
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: LIVE View as MP4

Post by gblanco »

In Events MP4 stream works beatiful. In Live there is no way.
Attachments
live_view.PNG
live_view.PNG (68.1 KiB) Viewed 5318 times
Events.PNG
Events.PNG (536.88 KiB) Viewed 5318 times
User avatar
burger
Posts: 390
Joined: Mon May 11, 2020 4:32 pm

Re: LIVE View as MP4

Post by burger »

Different browser? Different OS (joking)?
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: LIVE View as MP4

Post 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.
Last edited by gblanco on Sat Oct 03, 2020 8:21 pm, edited 1 time in total.
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: LIVE View as MP4

Post by gblanco »

EVENTS MP4:

Image


LIVE VIEW MP4

Image
Last edited by gblanco on Sat Oct 03, 2020 8:45 pm, edited 1 time in total.
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: LIVE View as MP4

Post 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
gblanco
Posts: 28
Joined: Sun Jul 17, 2011 2:15 pm
Location: Porto Alegre, Brazil

Re: LIVE View as MP4

Post by gblanco »

Live View (JPEG):

Image
Post Reply