Camera stream not running

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
MyBrainIsAStrainer
Posts: 4
Joined: Thu Oct 26, 2023 3:45 pm

Camera stream not running

Post by MyBrainIsAStrainer »

Hello!

I'm trying to run ZoneMinder on a Raspberry Pi400 with a Reolink RLC-842A camera. But no matter what I do, I cannot get ZoneMinder to show the camera as running.

The camera supports ONVIF, and when I use the probe function within ZM, it creates a setup that looks ok to me. The streaming URL is:
rtsp://user:pass@192.168.0.210:554/

I also tried rtsp://user:pass@192.168.0.210:554/h264Preview_01_main, which some websites suggest as the correct path. But it doesn't help either.

The source type is auto-set to ffmpeg but when I use "Remote", it also doesn't work. Same goes for setting the method in the source tab (TCP, UDP, UDP Multicast, HTTP)

I can use IP CENTCOM on a Windows machine to display the stream. I can use Frigate inside a docker container on the Pi400 to display the stream.

Code: Select all

# grep path /opt/frigate/config.yml 
        - path: rtsp://admin:admin1234@192.168.0.210:554/ #The Stream you want to monitor
It's just ZoneMinder which refuses to actually connect to the camera. What am I doing wrong?


Raspberry PiOS (Debian Bookworm)
ZoneMinder 1.36.33 (from Debian packages)
Camera firmware 3.1.0.1643_22122317
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Camera stream not running

Post by dougmccrary »

rtsp://user:pass@192.168.0.210:554/
Does vlc see anything with this?
Try stuff in vlc (quicker) and use what works in zm.

Also, this may provide a fix - iSpy works same as zm at this level.
https://support.reolink.com/hc/en-us/ar ... a-to-Ispy/
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Camera stream not running

Post by Magic919 »

Try it on the commandline of the Pi.
-
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Camera stream not running

Post by iconnor »

Look at logs, they will likely tell you what is wrong.
MyBrainIsAStrainer
Posts: 4
Joined: Thu Oct 26, 2023 3:45 pm

Re: Camera stream not running

Post by MyBrainIsAStrainer »

Thanks for the replies.

No, VLC also does not seem to work:

Code: Select all

$ vlc "rtsp://user:pass@192.168.0.210:554/"
VLC media player 3.0.16 Vetinari (revision 3.0.13-8-g41878ff4f2)
[000055c6b0cbf430] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f17a0001630] satip stream error: Failed to setup RTSP session
[00007f17a0001590] satip stream error: Failed to setup RTSP session
[00007f17a0001410] satip stream error: Failed to setup RTSP session
[00007f17a0001410] satip stream error: Failed to setup RTSP session
[00007f17a0003600] satip stream error: Failed to setup RTSP session
[00007f17a4001820] satip stream error: Failed to setup RTSP session
But like I wrote earlier: Frigate works. I also managed to get it to work with MotionEye. The CPU load is little bit too high for my taste when you add a second camera. But it does work.

The logs don't show anything. All I see is what is logged during the ONVIF probe. But nothing related to the stream itself.

Code: Select all

Date/Time,Component,Server,PID,Level,Message,File,Line
"10/28/23, 3:48:25 PM UTC",web_php,,8075,WAR,"Array(    [0] => 001, Profile001_SubStream, H264, 640, 360, 10, RTP-Multicast, rtsp://192.168.0.210:554/h264Preview_01_sub    [1] => 001    [2] => Profile001_SubStream    [3] => H264    [4] => 640    [5] => 360    [6] => 10    [7] => RTP-Multicast    [8] => rtsp://192.168.0.210:554/h264Preview_01_sub)",/usr/share/zoneminder/www/skins/classic/views/onvifprobe.php,106
"10/28/23, 3:48:25 PM UTC",web_php,,8075,WAR,"Array(    [0] => 001, Profile001_SubStream, H264, 640, 360, 10, RTP-Unicast, rtsp://192.168.0.210:554/h264Preview_01_sub    [1] => 001    [2] => Profile001_SubStream    [3] => H264    [4] => 640    [5] => 360    [6] => 10    [7] => RTP-Unicast    [8] => rtsp://192.168.0.210:554/h264Preview_01_sub)",/usr/share/zoneminder/www/skins/classic/views/onvifprobe.php,106
"10/28/23, 3:48:25 PM UTC",web_php,,8075,WAR,"Array(    [0] => 000, Profile000_MainStream, H264, 3840, 2160, 25, RTP-Multicast, rtsp://192.168.0.210:554/    [1] => 000    [2] => Profile000_MainStream    [3] => H264    [4] => 3840    [5] => 2160    [6] => 25    [7] => RTP-Multicast    [8] => rtsp://192.168.0.210:554/)",/usr/share/zoneminder/www/skins/classic/views/onvifprobe.php,106
"10/28/23, 3:48:25 PM UTC",web_php,,8075,WAR,"Array(    [0] => 000, Profile000_MainStream, H264, 3840, 2160, 25, RTP-Unicast, rtsp://192.168.0.210:554/    [1] => 000    [2] => Profile000_MainStream    [3] => H264    [4] => 3840    [5] => 2160    [6] => 25    [7] => RTP-Unicast    [8] => rtsp://192.168.0.210:554/)",/usr/share/zoneminder/www/skins/classic/views/onvifprobe.php,106

I tested it in a VM on my desktop, and it also didn't work there. So I think I can rule out any problems regarding the ARM architecture of the Pi4.

And, just be sure I mentioned it: RTSP is enabled in the camera settings (otherwise, it wouldn't have worked with the other programs), and the port is set to 554.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Camera stream not running

Post by Magic919 »

Isn’t Frigate run in a container?
-
MyBrainIsAStrainer
Posts: 4
Joined: Thu Oct 26, 2023 3:45 pm

Re: Camera stream not running

Post by MyBrainIsAStrainer »

Magic919 wrote: Sat Oct 28, 2023 7:25 pm Isn’t Frigate run in a container?
Yes. It can still capture and display the stream of the camera.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Camera stream not running

Post by Magic919 »

Which points to the problem being with the software on the Pi.
-
MyBrainIsAStrainer
Posts: 4
Joined: Thu Oct 26, 2023 3:45 pm

Re: Camera stream not running

Post by MyBrainIsAStrainer »

Magic919 wrote: Sun Oct 29, 2023 7:52 am Which points to the problem being with the software on the Pi.
I'm not so sure about that.

Reasons:
  • It not only works with Frigate inside a container but also with a natively installed MotionEye. If the native environment had some kind of issue, why isn't Motion affected?
  • I've also tried to run ZoneMinder in a VM with a fresh install of Debian 12.2 on my desktop. Still didn't work. Are there known issues with vanilla Debian 12 on amd64 platforms?
  • To further test the hypothesis, I installed docker in the VM and ran zoneminderhq/zoneminder:latest-ubuntu18.04. It has the same issue. So even inside a docker container, ZM still refuses to display the camera stream.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Camera stream not running

Post by Magic919 »

Ubuntu is probably a better match for ZM.
-
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Camera stream not running

Post by iconnor »

Perhaps try the rtmp stream. rtmp://ip adress/bcs/channel0_main.bcs?channel=0&stream=0&user=usenam&password=pass
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Camera stream not running

Post by dougmccrary »

$ vlc "rtsp://user:pass@192.168.0.210:554/"
This from onvif probe:
"10/28/23, 3:48:25 PM UTC",web_php,,8075,WAR,"Array( [0] => 001, Profile001_SubStream, H264, 640, 360, 10, RTP-Multicast, rtsp://192.168.0.210:554/h264Preview_01_sub [1] => 001 [2] => Profile001_SubStream [3] => H264 [4] => 640 [5] => 360 [6] => 10 [7] => RTP-Multicast [8] => rtsp://192.168.0.210:554/h264Preview_01_sub)",/usr/share/zoneminder/www/skins/classic/views/onvifprobe.php,106
I think you fail to specify a stream, e.g.,

rtsp://192.168.0.210:554/h264Preview_01_sub

I'm pretty sure using the above would work in vlc.
Post Reply