Cant use substream EZVIZ DB1

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Cant use substream EZVIZ DB1

Post by iitywygms »

Hi All.

Ubuntu 22.04.01
ZM v1.36.31

Camera EZVIZ DB1
Setup as monitor only.

The main stream works fine. Source is rtsp://XXXXX:XXXXXX@192.168.1.150:554/Streaming/Channels/101
Capturing at 14.87 fps, capturing bandwidth 58991bytes/sec Analysing at 15.62 fps
Everything works great.

I am trying to use the substream from this same camera.
When I try to setup a second monitor using rtsp://XXXXX:XXXXXX@192.168.1.150:554/Streaming/Channels/102
It will start capturing at 2.38 fps, capturing bandwidth 1627bytes/sec Analysing at 0.00 fps
But then it immediatly stops.

11/17/22, 6:51:47 PM EST zmc_m6 6208 INF Monitor-2: 10 - Capturing at 1.84 fps, capturing bandwidth 1363bytes/sec Analysing at 0.00 fps zm_monitor.cpp 1702
11/17/22, 6:51:42 PM EST zmc_m6 6208 INF Starting Capture version 1.37.27 zmc.cpp 221
11/17/22, 6:51:42 PM EST zmdc 5741 INF 'zmc -m 6' starting at 22/11/17 18:51:42, pid = 6208 zmdc.pl -
11/17/22, 6:51:42 PM EST zmdc 6208 INF 'zmc -m 6' started at 22/11/17 18:51:42 zmdc.pl -
11/17/22, 6:51:42 PM EST zmdc 5741 INF Command 'zmc -m 6' removed from pending list at 22/11/17 18:51:42 zmdc.pl -
11/17/22, 6:51:42 PM EST zmdc 5741 INF 'zmc -m 6' crashed, signal 8 zmdc.pl -
11/17/22, 6:51:42 PM EST zmdc 5741 WAR 'zmc -m 6' has not stopped at 22/11/17 18:51:42 after 10 seconds. Sending KILL to pid 6181 zmdc.pl -
11/17/22, 6:51:42 PM EST zmwatch 5795 INF Restarting capture daemon for 6 Monitor-2, 1668729102 - heartbeat time 1668729040 62 > 45 zmwatch.pl -
11/17/22, 6:51:31 PM EST zmdc 5741 INF 'zmc -m 6' sending stop to pid 6181 at 22/11/17 18:51:31

I can see the cameras image using vlc without any issues from both sources.
Where should I start looking?
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Cant use substream EZVIZ DB1

Post by iconnor »

signal 6 is normally an issue with not enough /dev/shm, but these days we shouldn't need veyr much. What is your Monitor->Buffers->Image Buffer set to? Shoudl be around 3 to 5.
iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Re: Cant use substream EZVIZ DB1

Post by iitywygms »

Image buffer is set to 5.
Where did you see signal 6?
I'm seeing signal 8. Or am I not looking into right spot?
Appreciate the help and feedback.
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Cant use substream EZVIZ DB1

Post by dougmccrary »

It may not matter these days, but you might need to change the resolution for the second channel.
iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Re: Cant use substream EZVIZ DB1

Post by iitywygms »

I did. The mainstream is 1536x2048
Sub is 600x800
That is also what zoneminder reports in the logs.
iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Re: Cant use substream EZVIZ DB1

Post by iitywygms »

So, after reading your comment, for fun I changed the resolution to 640x400 and it works.
The image is stretched but at least it works.

Any idea why the native resolution of 800x600 will not work?
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Cant use substream EZVIZ DB1

Post by iconnor »

Sometimes resolutions should be multiples of 16 or 32 or whatever... but things should still work. I would say it is a bug. Bug might be within ffmpeg. I'll have to do some testing.
Beetleboy
Posts: 13
Joined: Tue Feb 18, 2020 10:24 pm

Re: Cant use substream EZVIZ DB1

Post by Beetleboy »

I have the same camera, and use the sub stream to trigger the main stream. My camera resolution on the sub stream is 576x576, which makes sense as it is a doorbell fisheye lens. Works fine at that resolution
iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Re: Cant use substream EZVIZ DB1

Post by iitywygms »

Must be an older model to do 576x576?
Both VLC and Zoneminder see the substream as 800x600

Is your main stream different from 1536x2048?
Beetleboy
Posts: 13
Joined: Tue Feb 18, 2020 10:24 pm

Re: Cant use substream EZVIZ DB1

Post by Beetleboy »

Mainstream is 1024x1024. And that works fine with Zoneminder as well. It is a fisheye lens on my camera, and I am not using any of the EZVIZ software at all. I did use the HikVision batch tool to fine tune the settings beyond what the EZVIZ software allows. Notably it gave me access to some different resolutions and frame rates not exposed by the EZVIZ setup software.
Post Reply