Tp-Link Tapo C310 'zmc -m 2' exited abnormally, exit status 255

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Findeton
Posts: 2
Joined: Sat Sep 17, 2022 12:46 am

Tp-Link Tapo C310 'zmc -m 2' exited abnormally, exit status 255

Post by Findeton »

Hi, I have a Raspberry Pi 400 with Raspberry OS (debian 11/bullseye) and Zoneminder 1.36.25. I also have a TAPO TP-Link C310.

When I open this url on VLC, it works:

Code: Select all

rtsp://user:password@192.168.1.9:554/stream1
But when I add the camera to ZoneMinder, it says it's not capturing, and on the logs I get the ominous:

Code: Select all

'zmc -m 2' exited abnormally, exit status 255
This is the log screen:

Image

I've been unable to configure it to connect to the camera. This is the current configuration (for the screenshots I've replaced the actual user/pass with fake ones):

Image
Image
Image

I can see in the docs that ZoneMinder should support the camera, so why is it not working? how can I solve it? When I load the rtsp url on VLC it does work...

Please I'd greatly appreciate some help here!
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Tp-Link Tapo C310 'zmc -m 2' exited abnormally, exit status 255

Post by dougmccrary »

Might it want UDP?
Findeton
Posts: 2
Joined: Sat Sep 17, 2022 12:46 am

Re: Tp-Link Tapo C310 'zmc -m 2' exited abnormally, exit status 255

Post by Findeton »

dougmccrary wrote: Sat Sep 17, 2022 1:12 am Might it want UDP?
I tried UDP and the logs show the same error:
'zmc -m 2' exited abnormally, exit status 255
I also tried UDP multicast and I get:
Unable to open input rtsp://192.168.1.9:554/stream1 due to: Server returned 400 Bad Request
Failed to prime capture of initial monitor
I also tried HTTP Tunnel and I get:
Unable to open input rtsp://192.168.1.9:554/stream1 due to: Input/output error
dougmccrary
Posts: 1172
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Tp-Link Tapo C310 'zmc -m 2' exited abnormally, exit status 255

Post by dougmccrary »

Got any special characters in the uname or pass?
Just in case, I've noticed some cams are case sensitive to the uname.
I don't have that camera so that's all I got. Good luck with it.
tinymouse
Posts: 23
Joined: Sat Apr 02, 2022 11:36 pm

Re: Tp-Link Tapo C310 'zmc -m 2' exited abnormally, exit status 255

Post by tinymouse »

I have one of these cams and it's working just fine with ZoneMinder 1.36.25 and now .26 with Ubuntu 20.04. The only difference I see here is I'm not saving the audio on the storage tab.
rtsp://user:pass@192.168.1.198:554/stream1
TCP; 32bit color 1920x1080 (mine also works with VLC)
pat2
Posts: 156
Joined: Fri Sep 16, 2016 6:35 pm

Re: Tp-Link Tapo C310 'zmc -m 2' exited abnormally, exit status 255

Post by pat2 »

I have 5 Tapo C200 cams working fine with 1.36.26.
The syntax you used is correct.
Have you tried lower resolution?
---------------------------------------------------------------------------
ZM 1.36.34 - 14 cameras on Orange Pi 5 (arm64) - Ubuntu Jammy 22.04
gryzor
Posts: 1
Joined: Tue Apr 04, 2023 7:26 pm

Re: Tp-Link Tapo C310 'zmc -m 2' exited abnormally, exit status 255

Post by gryzor »

Greetings,

I had the very same problem with another rtsp camera. After upgrading to 1.36.26 (through debian stable backports), no matter which parameters I tried, "zmc -m 3" kept returning 255 just after it started.
I believe it is a problem specific to post-upgrade.

I spent a lot of time, and once I started running tcpdump to capture network datagrams, I had the surprise to discover that zmc never sent any network query to the camera.

Then I ran "zmc -m 3" by hand, to see its output.
The output was complaining about some "ZM_SOMETHING_OPT_AUTH" and suggested I run "zmupdate.pl -f", which I did (as root, still). After that, adding a camera started sending network probes and I have been able to setup my camera.

Also, after that, I deleted my camera from the console and created a new one instead (not sure that is needed).

@developers : I believe it is very much needed that zmc's STDOUT/STDERR be displayed somewhere on the console to report errors. This would have saved me a lot of time ; and maybe some users are keeping stuck forever because of such effects.

gryzor
Post Reply