unable to add a rtsp camera

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
User avatar
funix
Posts: 5
Joined: Mon Aug 12, 2024 6:39 pm

unable to add a rtsp camera

Post by funix »

Hello,

I use 1.36.33 with linux/mageia 9 and I am not able to add a rtsp IP camera, I try all combination between source and camera without success.
I can connect and it works without problem with ffmpeg in a shell with the command

ffplay rtsp://admin:password@192.168.2.110

Somebody can guide me to setup this camera ?
lbm
Posts: 89
Joined: Mon Mar 26, 2018 7:44 pm

Re: unable to add a rtsp camera

Post by lbm »

  • Which camera is it
    Can you share your settings for the camera ?
    Do you hany any specific errors, other than "not working" ?
Mine (hikvision) looks like this.

Code: Select all

rtsp://USER:PASS@IP//Streaming/Channels/1
User avatar
funix
Posts: 5
Joined: Mon Aug 12, 2024 6:39 pm

Re: unable to add a rtsp camera

Post by funix »

It's an annke I51DL camera

below a screenshot of the dashboard

Image

the source setup, I have tried all the methods (RTP/Unicast, multicast, RTSP, RTSP/HTTP), the path with ou without rtsp:// or user:password without sucess

Image

the camera setup

Image

and error log file

août 13 14:47:28 ultra.kervao.fr zmc_m1[657020]: ERR [zmc_m1] [Can't getaddrinfo(camera port 80): Name or service not known]
août 13 14:47:29 ultra.kervao.fr zmc_m1[657020]: ERR [zmc_m1] [connect(): getaddrinfo: Name or service not known]
août 13 14:47:29 ultra.kervao.fr zmc_m1[657020]: FAT [zmc_m1] [Unable to connect RTSP socket]
août 13 14:47:29 ultra.kervao.fr zmdc[656617]: ERR ['zmc -m 1' exited abnormally, exit status 255]
User avatar
funix
Posts: 5
Joined: Mon Aug 12, 2024 6:39 pm

Re: unable to add a rtsp camera

Post by funix »

oups ! there is my password in the image, I change it :)
lbm
Posts: 89
Joined: Mon Mar 26, 2018 7:44 pm

Re: unable to add a rtsp camera

Post by lbm »

If you in general on the camera, change it to ffmpeg, you will get some different options in source type.
Then on Method, select TCP, and in the source path, use the full rtsp:// url like so "rtsp://USER:PASS@IP//Streaming/Channels/1"

Im not sure, how the full path will look like on your camera though.
User avatar
funix
Posts: 5
Joined: Mon Aug 12, 2024 6:39 pm

Re: unable to add a rtsp camera

Post by funix »

ffplay works in a console only with rtsp://admin:password@192.168.2.110, so I tried it

Image

now in the dashboard, the source is green, the camera orange, but still no image

the error log is different

août 13 15:09:47 ultra.kervao.fr zmc_m1[657771]: ERR [zmc_m1] [Unable to open input "rtsp://192.168.2.110" due to: No such file or directory]
août 13 15:09:47 ultra.kervao.fr zmc_m1[657771]: ERR [zmc_m1] [Failed to prime capture of initial monitor]
User avatar
funix
Posts: 5
Joined: Mon Aug 12, 2024 6:39 pm

Re: unable to add a rtsp camera

Post by funix »

it works ! I had some trouble with my apache conf
Post Reply