Unable to play back HD events in web UI

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
~Rob
Posts: 10
Joined: Fri Jun 05, 2020 7:57 am

Unable to play back HD events in web UI

Post by ~Rob »

Hi,

I've got two 5mp Reolink camera. I have the sub-stream set to MoCord and it is linked to the main HD stream which is set to NoDect.

In the UI I can watch the events recorded on the sub-stream, but if I try to watch events on the main stream I get a black cross with "The video could not be loaded, either because the server or network failed or because the format is not supported"

If I change the codec from AUTO to MJPEG the video plays back but is slow. I'm able to play the MP4 from the disk location on my PC and VLC says they're in a H.264 format.

Spec is:
Version: v1.34.15
Ubuntu 20.04 VM running on ESXi
2 CPU
4Gb Ram
/dev/shm is at 83% and has been allocated 80% of memory in fstab
External MySQL database hosted on same virtual host

I've set the timezone to be BST on the zm and mysql OS level, as well as changing it in the php ini file as I read that can cause the issue.

The following is in the event log (/var/log/zm/zms_e<eventID>.log) when I access it:

Code: Select all

06/05/20 09:19:27.826211 zms_e4530[186510].INF-zm_ffmpeg.cpp/84 [Not enabling ffmpeg logs, as LOG_FFMPEG and/or LOG_DEBUG is disabled in options, or this monitor is not part of your debug targets]
06/05/20 09:19:28.706092 zms_e4530[186510].ERR-zm_eventstream.cpp/833 [Unable to send stream frame: Broken pipe]
Any help appreciated. Is it worth enabling the ffmpeg logs? How would I set the monitor as a debug target?
SkippyDo
Posts: 221
Joined: Mon Nov 20, 2017 6:49 pm

Re: Unable to play back HD events in web UI

Post by SkippyDo »

What happens if you disable the sub-stream, can you then view the main/HD stream?

With shm at 80+% I'm thinking that you're really taxing things. What's your total capture rate (MB/s) look like?

My system (NUC7i5) is running four cameras at 1280x720 set to MODECT (capturing as MPEG) and shm is 16% with a network load of 2.2MB/s. Using only one stream per camera for both live view and detect. Memory while idling (at .45 load):

total used free shared buff/cache available
Mem: 8048696 1028644 4283648 721420 2736404 6017196
Swap: 9765884 0 9765884
~Rob
Posts: 10
Joined: Fri Jun 05, 2020 7:57 am

Re: Unable to play back HD events in web UI

Post by ~Rob »

I'm able to view the streams fine, it's only event playback that fails.

Current capture rate for all four streams is 2.23Mb/s (taken from under the function column)

Code: Select all

zoneminder@zoneminder:~$ free -mh
              total        used        free      shared  buff/cache   available
Mem:          3.8Gi       640Mi       139Mi       2.8Gi       3.1Gi       176Mi
Swap:         3.3Gi       2.7Gi       617Mi
SkippyDo
Posts: 221
Joined: Mon Nov 20, 2017 6:49 pm

Re: Unable to play back HD events in web UI

Post by SkippyDo »

OK... What UI?

I just discovered that zmNinja on my Android phone is not capable of playing back ZM events (MPEGs) even though a similar phone with same OS level can*: I'm breaking down and buying a newer phone. On this same phone video playback works in a web browser from ZM console if I manually select the CODEC (MPEG). Might be whatever UI you're using is not capable of deciphering the format.

* Just upgraded my server OS and ZM. No issues running under 1.30.4 (which was saving video as JPEGs).
~Rob
Posts: 10
Joined: Fri Jun 05, 2020 7:57 am

Re: Unable to play back HD events in web UI

Post by ~Rob »

I can view the events on zmNinja fine. It's only the web UI that's failing.

Cameras are all set to Ffmpeg source and h264 passthrough for storage. Saving Analysis images only.
~Rob
Posts: 10
Joined: Fri Jun 05, 2020 7:57 am

Re: Unable to play back HD events in web UI

Post by ~Rob »

It appears to be a simple fix in the end.

Once I got ZM up and running I enabled https. I've also changed the IP address so my configuration in Options > Servers was incorrect. I've updated it and now see videos again in the web UI :D
SkippyDo
Posts: 221
Joined: Mon Nov 20, 2017 6:49 pm

Re: Unable to play back HD events in web UI

Post by SkippyDo »

Servers shouldn't show anything? Not unless you're using multiple servers. That's my understanding. I suspect your issue was your web config.
Post Reply