ZM 1.36 RTSP Remote capturing but not showing video

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
F1R35pirit
Posts: 5
Joined: Mon Dec 09, 2024 9:05 pm

ZM 1.36 RTSP Remote capturing but not showing video

Post by F1R35pirit »

I have a PTZ camera from AliExpress. I guess it is CamHi IPCAM C6F0SpZ3N0PlL2.
I have no problems connecting to it via VLC or via ONVIF Device Manager, the latter also successfully controls the PTZ functions.

The device's stream url is rtsp://172.17.71.32:554/11, and there is also a secondary stream at /12

With ZM 1.36, however, I'm struggling to make it work. I have configured a "monitor" with the following parameters:
  • General:
    • Source Type: Remote
    • Function: Monitor
  • Source:
    • Protocol: RTSP
    • Method: RTP/Unicast (I've also tried other, but they produce even worse results)
    • Host Name: 172.17.71.32 (somehow it doesn't actually work with a hostname here, only with ip address)
    • Port: 554
    • Path: /11
    • Capture Resolution: 2560x1440 1440p QHD WQHD
I guess other settings are irrelevant. With the above settings I get the following:
  • On the "Console" page I see "Capturing" in the "Function" column, but a broken image icon in the "Name" column.
  • On the "Log" page I see a lot of messages like this:

    Code: Select all

    12/9/24, 9:19:32 PM UTC	zmc_m1		3434662	INF	Rack-2: 23200 - Capturing at 19.98 fps, capturing bandwidth 262706bytes/sec Analysing at 19.78 fps	zm_monitor.cpp	1680
    12/9/24, 9:19:27 PM UTC	zmc_m1		3434662	INF	Rack-2: 23100 - Capturing at 20.02 fps, capturing bandwidth 211804bytes/sec Analysing at 20.02 fps	zm_monitor.cpp	1680
    12/9/24, 9:19:22 PM UTC	zmc_m1		3434662	INF	Rack-2: 23000 - Capturing at 20.02 fps, capturing bandwidth 216852bytes/sec Analysing at 20.02 fps	zm_monitor.cpp	1680
    12/9/24, 9:19:17 PM UTC	zmc_m1		3434662	INF	Rack-2: 22900 - Capturing at 20.01 fps, capturing bandwidth 224552bytes/sec Analysing at 20.21 fps	zm_monitor.cpp	1680
    
  • On the monitor's page that opens when I click on monitor's name, I see a blank page with the standard "broken image" icon and some standard header and footer.
What am I doing wrong? How can I make it work?

P.S. Just for reference, the camera is this: https://aliexpress.ru/item/1005008018786467.html
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: ZM 1.36 RTSP Remote capturing but not showing video

Post by bbunge »

Source Path: rtsp://user:password@172.17.71.52:554/11
Method: TCP

And make sure the resolution matches the cam settings! To get started set the cam main stream to 720P or 1080P

I suspect you are not using ZM 1.36 as some of your settings do not appear in ZM 1.36.36
F1R35pirit
Posts: 5
Joined: Mon Dec 09, 2024 9:05 pm

Re: ZM 1.36 RTSP Remote capturing but not showing video

Post by F1R35pirit »

bbunge wrote: Tue Dec 10, 2024 1:51 am I suspect you are not using ZM 1.36
This is what my apt says:

Code: Select all

# apt show zoneminder
Package: zoneminder
Version: 1.36.33+dfsg1-1build4
...
bbunge wrote: Tue Dec 10, 2024 1:51 am Source Path: rtsp://user:password@172.17.71.52:554/11
Method: TCP
There is no such method for 'Remote' source type in my ZM. Did you mean some other source type?
bbunge wrote: Tue Dec 10, 2024 1:51 am set the cam main stream to 720P or 1080P
1080P is the least my camera can do, but it doesn't help. Still no picture.
F1R35pirit
Posts: 5
Joined: Mon Dec 09, 2024 9:05 pm

Re: ZM 1.36 RTSP Remote capturing but not showing video

Post by F1R35pirit »

bbunge wrote: Tue Dec 10, 2024 1:51 am Source Path: rtsp://user:password@172.17.71.52:554/11
Method: TCP
I tried this with 'ffmpeg' source type, and the result is exactly the same as with 'Remote'/'RTSP': "capturing" in the console window and in the logs, but no actual picture.
F1R35pirit
Posts: 5
Joined: Mon Dec 09, 2024 9:05 pm

Re: ZM 1.36 RTSP Remote capturing but not showing video

Post by F1R35pirit »

Looks like my setup is somehow broken, because when I tried to open the URL that my ZM uses to show the picture:

Code: Select all

http://myzmhost.mydomain.tld/zm/cgi-bin/zms?scale=75&mode=jpeg&maxfps=30&monitor=1&rand=323286&connkey=927939
all I got was... an ELF file! So it looks like CGI apps are served as usual files instead of being executed.
F1R35pirit
Posts: 5
Joined: Mon Dec 09, 2024 9:05 pm

Re: ZM 1.36 RTSP Remote capturing but not showing video

Post by F1R35pirit »

Turned out, the CGI module wasn't enabled for my apache2. Yet another 'peculiarity' of ZM installer. I would expect the installer to make the product ready for use, but first I had to manually create the mysql user and the databse, now this...

For anyone having the same problem, do this:

Code: Select all

sudo a2enmod cgi
sudo systemctl restart apache2
Post Reply