Page 1 of 1

No recording in Camera Passthrough mode...

Posted: Wed Aug 03, 2022 12:57 am
by justanotherguy
Hi All,

I have managed to install Zoneminder v1.36.21 on Ubuntu box (22.04). I have a Reolink camera RLC-811a which I have managed to configure with ZM. However, I have noticed that in ZM recordings only work when selecting Save JPEG's - Frames - Analysis images (if available).

If I select Video Writer - Camera Passthrough, the logs are filled with errors like:

zmc_m1 2929 ERR Error writing packet: Operation not permitted zm_videostore.cpp

Is there something I might have missed while setting up or are there other options that I need to enable?

Thanks
JAG

Re: No recording in Camera Passthrough mode...

Posted: Wed Aug 03, 2022 4:01 pm
by Magic919
Look for other errors.

Re: No recording in Camera Passthrough mode...

Posted: Fri Aug 05, 2022 8:47 am
by justanotherguy
Managed to get it to work, but the recordings do not play in the browser. Did a bit more digging and found out that one of the suggestion was to add ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" to httpd.conf. I had to add this to apache2.conf in my setup.

I can see the videos are getting recorded, but they still don't play. I can only see a thumbnail and clicking on it doesn't do anything. I have tried selecting the codec MJPEG, but no success.

It works only if I select: Save JPEG's - Frames - Analysis images (if available) in the Storage section with Video Writer Disabled. The issue with this setup is that the recordings are quite big - in the range of 400 - 500 MB for a 10 second recording.

Re: No recording in Camera Passthrough mode...

Posted: Sun Aug 07, 2022 9:21 pm
by justanotherguy
Further update...

The recordings work properly in the following 2 modes:

Save JPEG's - Frames - Analysis images (if available) (Video writer disabled)
or
Video Writer - Encode (Save JPEG's disabled).

How can I get it work in Video Writer - Camera Passthrough mode? The system records, but the recordings don't play. It just shows the first and last frame of the recording when viewing. Any suggestions?

Re: No recording in Camera Passthrough mode...

Posted: Sun Aug 07, 2022 10:29 pm
by iconnor
It is probably h265 which your browser can't play. When viewing an event, top right choose MJPEG for codec.

Re: No recording in Camera Passthrough mode...

Posted: Sun Aug 07, 2022 11:24 pm
by justanotherguy
Tried changing the codec to MJPEG, however, the issue still remains.

I have tried the following URL's for source (both work fine in VLC) and also in ZM for the live view.
rtsp://admin:password@192.168.1.167/h264Preview_01_main
rtsp://admin:password@192.168.1.167/h265Preview_01_main

Only the playback of the recordings doesn't work no matter the codec.

Edit : BTW, I have followed the instructions from the article:
https://zoneminder.readthedocs.io/en/st ... window-etc

Following is from the log on trying to view an event recorded using the camera passthrough mode:

8/22, 2:27:43 PM GMT+10 web_js 2147 ERR getCmdResponse stream error: No data to read from socket - checkStreamForErrors() ?view=event&eid=401&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=4&filter%5BQuery%5D%5Bsort_asc%5D=1&filter%5BQuery%5D%5Bsort_field%5D=StartDateTime&fi -
8/8/22, 2:27:42 PM GMT+10 web_php 2198 ERR No data to read from socket /usr/share/zoneminder/www/includes/functions.php 1880
8/8/22, 2:27:42 PM GMT+10 web_php 2198 ERR Timed out waiting for msg /run/zm/zms-326088s.sock /usr/share/zoneminder/www/ajax/stream.php
8/8/22, 2:27:39 PM GMT+10 web_js 2147 ERR getCmdResponse stream error: Unable to get semaphore. - checkStreamForErrors() ?view=event&eid=401&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Battr%5D=MonitorId&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bop%5D=%3D&filter%5BQuery%5D%5Bterms%5D%5B0%5D%5Bval%5D=4&filter%5BQuery%5D%5Bsort_asc%5D=1&filter%5BQuery%5D%5Bsort_field%5D=StartDateTime&fi -
8/8/22, 2:27:38 PM GMT+10 web_php 2147 ERR Unable to get semaphore. /usr/share/zoneminder/www/includes/functions.php

Not sure if it's of any help.

Ta

Re: No recording in Camera Passthrough mode...

Posted: Mon Aug 08, 2022 11:12 pm
by justanotherguy
Alright... so could never get this to work. Lots of different types of errors in the logs. Time to give up trying to set it up. Thanks to anyone who tried to help.

Cheers.