New install RPi - `'zmc -m 1' exits abnormally when camera defined

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
scheen
Posts: 3
Joined: Tue Jul 13, 2021 9:03 am

New install RPi - `'zmc -m 1' exits abnormally when camera defined

Post by scheen »

Hi All

I'm new the ZM...

Installed for the first time ZM 1.36 on RPi 4b 8GB with 480GB SSD according to the latest Debian guide https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo
Install worked fine.

I have one camera (TP-Link Tapo TC70). I can stream with ffmpeg on the CMDL with `ffmpeg -i "rtsp://user:pass@192.168.xxx.xxx:554/stream1" out.mp4` without problems.

However, in ZM, when I add the camera in the Console as an FFMPEG device, leaving everything empty expect for the Source path to `rtsp://user:pass@192.168.xxx.xxx:554/stream1` and setting resolution to 1920x1080, then

I get an error in the logs `'zmc -m 1' exited abnormally, exit status 255`. ZM is also not able to stream from the camera.

How can I debug this further, to understand what is going on? Or maybe someone has the cure to this right away?

Many thanks
S
User avatar
burger
Posts: 472
Joined: Mon May 11, 2020 4:32 pm

Re: New install RPi - `'zmc -m 1' exits abnormally when camera defined

Post by burger »

RPI may not be able to do 1920x1080. Try lowering the resolution / framerate.

It's not just recording a video, it's also trying to do motion detection (mathematical analysis of the stream) which
requires a powerful CPU.

See this page:
https://wiki.zoneminder.com/Single_Board_Computers
fastest way to test streams:
ffmpeg -i rtsp://<user>:<pass>@<ipaddress>:554/path ./output.mp4 (if terminal only)
ffplay rtsp://<user>:<pass>@<ipaddress>:554/path (gui)
find paths on ispydb or in zm hcl

If you are new to security software, read:
https://wiki.zoneminder.com/Dummies_Guide
scheen
Posts: 3
Joined: Tue Jul 13, 2021 9:03 am

Re: New install RPi - `'zmc -m 1' exits abnormally when camera defined

Post by scheen »

Thank you for the suggestion.

I changed it to 640x360 and monitor only.

Sadly, that still fails - however with a different error message:
'zmc -m 2' exited abnormally, exit status 255

What else can I do to get more useful error output?
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: New install RPi - `'zmc -m 1' exits abnormally when camera defined

Post by iconnor »

Turn on debug logs. Options->Logging->ZM_DEBUG.
Post Reply