No Live streaming on zm

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
hikcity
Posts: 10
Joined: Sun Dec 13, 2020 2:54 pm

No Live streaming on zm

Post by hikcity »

Well
It is a time to share a current problem with brand new zoneminder.
All installation went without any problems.
There is no problem add the specific camera into the configuration.
zoneminder-monitor.png
zoneminder-monitor.png (35.63 KiB) Viewed 2110 times
I can change the resolution, ports - no problem at all.
Recording goes as well as always.
zoneminder-recording.png
zoneminder-recording.png (35.48 KiB) Viewed 2110 times
When it come to live view, or playback recording - NO VIDEO!!
zoneminder-live.png
zoneminder-live.png (24.83 KiB) Viewed 2110 times
Apache, ZM, syslog - no errors!!

Code: Select all

syslog
Dec 13 16:54:03 uksa zmc_m7[5906]: INF [zmc_m7] [HIKVISION DS-2CD2386G2-IU: images:45700 - Capturing at 25.00 fps, capturing bandwidth 59985bytes/sec]
Dec 13 16:54:07 uksa zmc_m7[5906]: INF [zmc_m7] [HIKVISION DS-2CD2386G2-IU: images:45800 - Capturing at 25.00 fps, capturing bandwidth 63032bytes/sec]
Dec 13 16:54:11 uksa zmc_m7[5906]: INF [zmc_m7] [HIKVISION DS-2CD2386G2-IU: images:45900 - Capturing at 25.00 fps, capturing bandwidth 61899bytes/sec]
Dec 13 16:54:15 uksa zmc_m7[5906]: INF [zmc_m7] [HIKVISION DS-2CD2386G2-IU: images:46000 - Capturing at 25.00 fps, capturing bandwidth 60634bytes/sec]
Dec 13 16:54:19 uksa zmc_m7[5906]: INF [zmc_m7] [HIKVISION DS-2CD2386G2-IU: images:46100 - Capturing at 25.00 fps, capturing bandwidth 60875bytes/sec]
Any suggestions what that could be?
System detalis:
Debian 10 4.19.0-13-amd64
Zoneminder v1.34.22 - installed as guided
IP CAM: HIKVISION DS-2CD2386G2-IU
hikcity
Posts: 10
Joined: Sun Dec 13, 2020 2:54 pm

Re: No Live streaming on zm

Post by hikcity »

Recording shows following content.
zoneminder-recorded-details.png
zoneminder-recorded-details.png (79.66 KiB) Viewed 2106 times
All videos saved in mp4 format (H264 camera passthrough) mode. Files heathy and in the right folder.
I must assume it is unusual.
hikcity
Posts: 10
Joined: Sun Dec 13, 2020 2:54 pm

Re: No Live streaming on zm

Post by hikcity »

Recently I have found that restart apache generates an error:
error.log

Code: Select all

[ 2020-12-14 08:36:58.3507 14644/7f6a88ac8980 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
[ 2020-12-14 08:36:58.3638 14647/7ff14ec2e980 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2020-12-14 08:36:58.3640 14647/7ff14ec2e980 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2020-12-14 08:36:58.3656 14647/7ff14ec2e980 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 14647
[ 2020-12-14 08:36:58.3832 14659/7f17a338a980 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2020-12-14 08:36:58.3853 14659/7f17a338a980 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 14659
[Mon Dec 14 08:36:58.387872 2020] [suexec:notice] [pid 14642] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)


[ 2020-12-14 08:36:58.3892 14647/7ff14e261700 age/Cor/CoreMain.cpp:532 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2020-12-14 08:36:58.3892 14659/7f17a328b700 age/Ust/UstRouterMain.cpp:422 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2020-12-14 08:36:58.3893 14659/7f17a338a980 age/Ust/UstRouterMain.cpp:492 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2020-12-14 08:36:58.3893 14647/7ff14ec2e980 age/Cor/CoreMain.cpp:901 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2020-12-14 08:36:58.3894 14659/7f17a328b700 Ser/Server.h:464 ]: [UstRouter] Shutdown finished
[ 2020-12-14 08:36:58.3895 14647/7ff14e261700 Ser/Server.h:817 ]: [ServerThr.1] Freed 128 spare client objects
[ 2020-12-14 08:36:58.3896 14647/7ff14d9df700 Ser/Server.h:817 ]: [ServerThr.2] Freed 128 spare client objects
[ 2020-12-14 08:36:58.3896 14647/7ff14e261700 Ser/Server.h:464 ]: [ServerThr.1] Shutdown finished
[ 2020-12-14 08:36:58.3896 14647/7ff14d9df700 Ser/Server.h:464 ]: [ServerThr.2] Shutdown finished
[ 2020-12-14 08:36:58.3896 14659/7f17a2a09700 Ser/Server.h:817 ]: [UstRouterApiServer] Freed 0 spare client objects
[ 2020-12-14 08:36:58.3897 14659/7f17a2a09700 Ser/Server.h:464 ]: [UstRouterApiServer] Shutdown finished
[ 2020-12-14 08:36:58.3897 14647/7ff14d15d700 Ser/Server.h:817 ]: [ServerThr.3] Freed 128 spare client objects
[ 2020-12-14 08:36:58.3897 14647/7ff14d15d700 Ser/Server.h:464 ]: [ServerThr.3] Shutdown finished
[ 2020-12-14 08:36:58.3898 14647/7ff11ffff700 Ser/Server.h:817 ]: [ApiServer] Freed 0 spare client objects
[ 2020-12-14 08:36:58.3898 14647/7ff11ffff700 Ser/Server.h:464 ]: [ApiServer] Shutdown finished
[ 2020-12-14 08:36:58.3898 14647/7ff14c8db700 Ser/Server.h:817 ]: [ServerThr.4] Freed 128 spare client objects
[ 2020-12-14 08:36:58.3898 14647/7ff14c8db700 Ser/Server.h:464 ]: [ServerThr.4] Shutdown finished
[ 2020-12-14 08:36:58.3905 14659/7f17a338a980 age/Ust/UstRouterMain.cpp:523 ]: Passenger UstRouter shutdown finished
[ 2020-12-14 08:36:58.4390 14678/7fa354eca980 age/Wat/WatchdogMain.cpp:1291 ]: Starting Passenger watchdog...
[ 2020-12-14 08:36:58.4518 14681/7f98f9824980 age/Cor/CoreMain.cpp:982 ]: Starting Passenger core...
[ 2020-12-14 08:36:58.4520 14681/7f98f9824980 age/Cor/CoreMain.cpp:235 ]: Passenger core running in multi-application mode.
[ 2020-12-14 08:36:58.4520 14647/7ff14ec2e980 age/Cor/CoreMain.cpp:967 ]: Passenger core shutdown finished
[ 2020-12-14 08:36:58.4538 14681/7f98f9824980 age/Cor/CoreMain.cpp:732 ]: Passenger core online, PID 14681
[ 2020-12-14 08:36:58.4715 14688/7f692d35b980 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2020-12-14 08:36:58.4737 14688/7f692d35b980 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 14688
[Mon Dec 14 08:36:58.524148 2020] [mpm_prefork:notice] [pid 14675] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 Phusion_Passenger/5.0.30 OpenSSL/1.1.1d configured -- resuming normal operations
There is one important factor. Zoneminder where installed on top of ispconfig.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: No Live streaming on zm

Post by Magic919 »

There will be logs, maybe not where you expect.

I see the 'Log' heading in your webUi is red. Start in there.
-
fasmike
Posts: 3
Joined: Sat Dec 12, 2020 12:15 am

Re: No Live streaming on zm

Post by fasmike »

I've got a similar issue and I've been fighting for days to get past it. No live streaming, but I get still images.

I'm running ZoneMinder v1.34.22.
Ubuntu Server: VERSION="20.04.1 LTS (Focal Fossa)"
Annke C800 turret camera (now with Hikvision firmware)
source type: ffmpeg
function: Mcord
source is: rtsp://username:password@192.168.1.101:554/H264/ch1/main/av_stream

The above source works fine directly in vlc on a stand alone laptop. I can stream in vlc.

There are a lot of "no live streaming" threads and I think I've read them all.

I "think" I've tried every fix and am still coming up empty. I guess it's possible I've tried the winning config changes along the way, but not in the right combination. I'm including what I believe are the relevant logs, configs and files below. Any hints would be GREAT!

Here are my existing errors:
Screen Shot 2020-12-14 at 12.44.22 PM.png
Screen Shot 2020-12-14 at 12.44.22 PM.png (521.15 KiB) Viewed 2062 times
Here are the paths I've changed:
/etc/apache2/conf-enabled/zoneminder.conf
Screen Shot 2020-12-14 at 1.15.20 PM.png
Screen Shot 2020-12-14 at 1.15.20 PM.png (289.5 KiB) Viewed 2062 times
/etc/zm/conf.d/01-system-paths.conf
Screen Shot 2020-12-14 at 1.19.42 PM.png
Screen Shot 2020-12-14 at 1.19.42 PM.png (118.71 KiB) Viewed 2062 times
Here's my directory listing for zms or nph-zms:

Code: Select all

fasmike@ksmbserver:/$ ls -altr /usr/lib/zoneminder/cgi-bin/
total 1868
-rwxr-xr-x 1 root root 1902184 Oct 19 12:22 zms
lrwxrwxrwx 1 root root       3 Oct 19 12:22 nph-zms -> zms
drwxr-xr-x 3 root root    4096 Dec 10 17:25 ..
drwxr-xr-x 2 root root    4096 Dec 10 17:25 .
fasmike@ksmbserver:/$ 
hikcity
Posts: 10
Joined: Sun Dec 13, 2020 2:54 pm

Re: No Live streaming on zm

Post by hikcity »

I think i have spotted the error.

Code: Select all

Access to XMLHttpRequest at 'tcp://domain579.com:554/zm/index.php?view=request&request=stream&connkey=532090&auth=0219a2ea382abc5ecfff1cc8e87d76ea&command=99' from origin 'https://domain579.com' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, brave, chrome-untrusted, https.
skins_classic_views_js_watch-base-1600996760.js:133 XMLHttpRequest {readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, onreadystatechange: ƒ, …}
csrf-magic.js:41 GET tcp://domain579.com:554/zm/index.php?view=request&request=stream&connkey=532090&auth=0219a2ea382abc5ecfff1cc8e87d76ea&command=99 net::ERR_FAILED
send @ csrf-magic.js:41
send @ mootools-core.js:1
i.extend.$owner @ mootools-core.js:1
send @ mootools-more.js:1
streamCmdQuery @ skins_classic_views_js_watch-base-1600996760.js:401
watchdogCheck @ skins_classic_views_js_watch-base-1600996760.js:801
(anonymous) @ mootools-core.js:1
(anonymous) @ mootools-core.js:1
setInterval (async)
periodical @ mootools-core.js:1
initPage @ skins_classic_views_js_watch-base-1600996760.js:823
skins_classic_views_js_watch-base-1600996760.js:800 Detected streamWatch of type: stream stopped, restarting
Have in you mind that:
"tcp://domain579.com:554/zm...." - comes form CAMERA IP ADDRESS
and
"https://domain579.com" - ZM IP ADDRES with verified certificate
Another words it is CORS policy problem
SBCDave
Posts: 36
Joined: Tue Mar 24, 2020 8:32 pm

Re: No Live streaming on zm

Post by SBCDave »

Any idea how to get around CORS policy issue? You sure CORS applies to RTSP stream?

I'm having trouble getting my new Annke setup in ZM also. Works fine in VLC with same RTSP uri that OP is using
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: No Live streaming on zm

Post by Magic919 »

See one of the OP's other threads for the CORS subject.
-
Post Reply