No recording in Camera Passthrough mode...

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
justanotherguy
Posts: 18
Joined: Wed Aug 03, 2022 12:48 am

No recording in Camera Passthrough mode...

Post 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
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: No recording in Camera Passthrough mode...

Post by Magic919 »

Look for other errors.
-
justanotherguy
Posts: 18
Joined: Wed Aug 03, 2022 12:48 am

Re: No recording in Camera Passthrough mode...

Post 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.
justanotherguy
Posts: 18
Joined: Wed Aug 03, 2022 12:48 am

Re: No recording in Camera Passthrough mode...

Post 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?
User avatar
iconnor
Posts: 2862
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: No recording in Camera Passthrough mode...

Post by iconnor »

It is probably h265 which your browser can't play. When viewing an event, top right choose MJPEG for codec.
justanotherguy
Posts: 18
Joined: Wed Aug 03, 2022 12:48 am

Re: No recording in Camera Passthrough mode...

Post 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
justanotherguy
Posts: 18
Joined: Wed Aug 03, 2022 12:48 am

Re: No recording in Camera Passthrough mode...

Post 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.
Post Reply