Closed Sandman224 closed 4 months ago
You need to make sure and add the user / pass to onvif. There is a separate list and your camera login does not carry over
You need to make sure and add the user / pass to onvif. There is a separate list and your camera login does not carry over
Yes It has been added to the ONVIF section. See the config file under front
no, I am saying in the camera itself there is a list of user / pass for rtsp / camera login and there is a separate part of the camera UI that holds where you add the onvif user / pass. They do not get shared automatically
Well my other Amcrest cameras work with the username and password that is used for rstp/camera login. I cannot find another section of the camera UI that contains a different ONVIF username and password. This is the only section on any of the Amcrest cameras that even mentiones ONVIF:
just checked my amcrest camera, under system -> users there is a list of users. on my camera there are headers at the top for users, onvif users, then user groups.
In any case make sure your user has ptz permission
Hmm I don't seem to have that in my options In any event my admin user has PTZ control perms
Any luck getting this camera to work?
Any luck getting this camera to work?
Nope still haven't figured it out. Granted I have not done much since I opened the issue because I feel like I have done everything I can.
Just setting up one of these cameras and I ran into the onvif login problem. From the system/manage users section there is nothing about onvif. I used "onvif device manager" to log into the camera and modify the user name / password. With device manager log into the camera with the default credentials... admin admin. Once logged in you can use "user management" to change the password. I had already changed the password with the web management but still had to use the default password to change the settings in onvif device manager. I have not power cycled the camera yet so I have not checked to see if it remembers the change. Just starting to try to hunt down the rtsp url needed for the camera.
Interesting find. I have done the same as you and now it connects to frigate. However PTZ control is still very broken in both the onvif device manager and frigate.
I wrestled with this for a while and finally got PT working. My cameras have no Z, but I'm cool with that.
My specific Amcrest camera models: IP2M-841B IP2M-841W
I was able to login to both cameras with ONVIF Device Manager (Thank you @sdgilvey !!!). I used the same user/pass that works for logging in to the Amcrest interface.
From there, I created a new admin user for each camera.
Then added this to each of the cameras:
onvif:
host: 10.10.6.3
port: 80
user: NEW-ADMIN-USER
password: NEW-ADMIN-USER-PASS
Not sure how much, if any, of that was necessary, but it now works great with both cameras!
Side note for RTSP links...try these @sdgilvey
Main Stream: rtsp://USER:PASS@CAMERAIP:554/cam/realmonitor?channel=1&subtype=0
Sub Stream: rtsp://USER:PASS@CAMERAIP:554/cam/realmonitor?channel=1&subtype=1
Hmm I tried creating a new user for my camera like @BSkando mentioned. Still no dice. ONVIF device manager gives me this error on continuous move and does nothing on the other two options: Frigate gives me a Z option although this model does not have zoom. It also gives me no option for PT control:
Interesting. Your camera UI in this post matches my Jennov. ONVIF ODM claims it's ONVIF also, but it's "not certified" and I only got PTZ to work with ZoneMinder with a proper kludge (it was mostly calling scripts, not ONVIF).
I pinged Jennov for updated f/w but was told "there is none". Camera also suffers from the leap year bug where it was 1-3 days ahead on date stamp in Feb...
Updated frigate from 0.13.1 to 0.13.2 and got the options for pan and tilt in the gui. As expected they do not do anything. I definitely feel like this is a camera issue rather than frigate.
I don't even get the UI :) I have tried "gonvif" which says "ONVIF not supported" - so whatever some of these cameras do, it's "pseudo-ONVIF" and not "official". I would try ODM but virustotal has put me off that entirely!
Messed with this issue after the latest Amcrest update. The Cameras are trying to force https 443 on the Onvif connections with what most servers see as a invalid certificate. Simple...should I say very simple fix is to log into the camera, go to the network settings and https. Uncheck the box to use HTTPS and reboot the camera. The ONVIF will connect perfectly! Viola!!
Messed with this issue after the latest Amcrest update. The Cameras are trying to force https 443 on the Onvif connections with what most servers see as a invalid certificate. Simple...should I say very simple fix is to log into the camera, go to the network settings and https. Uncheck the box to use HTTPS and reboot the camera. The ONVIF will connect perfectly! Viola!!
Where do you change that setting? On the camera interface or using the ONVIF device manager?
My cameras already have the enable HTTPS box unchecked in the camera settings interface so I am not sure why I would have an issue still.
I changed mine right where you are at. Did a reboot and it worked for every single amcrest camera we have. We are using the ONVIF-S with authentication, that may make a difference as well?
Hmm interesting. I turned HTTPS on and got the certificate error in the frigate logs. Turning it off again just results in the same error as before.
When you say you are using ONVIF-S what do you mean exactly by that? Is that something I change on the camera or in Frigate?
Assume you are using port 80 yes?
Assume you are using port 80 yes?
Yes I am using port 80. Tried a few more things but still couldn't get it to work properly.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I did not ever find a solution. Someone else said they got it working but even following their instructions I was never able to get my cameras to work.
On Sat, Jun 1, 2024 at 3:17 PM Thomas @.***> wrote:
Did you ever find a solution to this problem? I have exactly the same issue with an Amcrest IP5M-T1179EB-28mm.
— Reply to this email directly, view it on GitHub https://github.com/blakeblackshear/frigate/issues/9813#issuecomment-2143592473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3D4LNIL467KN44G7FZEBTZFI25NAVCNFSM6AAAAABDD4AFUSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGU4TENBXGM . You are receiving this because you authored the thread.Message ID: @.***>
Thanks for your quick answer. I delete my message as i found out right after posting that my camera is not supporting PTZ. Embarrassing :/
I have PTZ controls working on my IP5M-1190EW.
Autotracking does not work. There is an error saying:
Disabling autotracking for [camera]: FOV relative movement not supported
To be able to get PTZ controls only my camera to work, I used the following settings:
onvif:
host: 192.168.1.XXX
port: 80
user: admin
password: SUPERSECRET
ignore_time_mismatch: true
Try as I might, the camera always likes to reset my time settings which means without the ignore_time_mismatch: true
I was getting inconsistent results on the PTZ controls being available.
did that make autotracking work?
No. I should have been more clear. Only PTZ controls work with my settings above. Autotracking does not work with the camera at all.
Describe the problem you are having
I upgraded my frigate installation to the latest because I saw PTZ support was added. I have two PTZ cameras (Amcrest IP5M-1190W) and I added the required entries to the frigate config file for ONVIF as follows:
After adding this I get an error in the frigate logs:
I tried this with my other Amcrest cameras which are different models and do not support PTZ and had no issues. I did make sure to enable ONVIF in the Amcrest camera settings and my username and password are definitely correct.
I am beginning to think its an issue with the camera itself, but I wanted to see if this was something anyone else has encountered. Some preliminary google searches about this camera and ONVIF support returned this thread which seems to indicate there is some issue with how authentication is handled for this camera and is an issue seen with other software. However they did eventually fix the issue although I am not certain as to how exactly the solution was accomplished.
Version
0.13.1
Frigate config file
Relevant log output
FFprobe output from your camera
Frigate stats
No response
Operating system
Debian
Install method
Docker Compose
Coral version
USB
Network connection
Wired
Camera make and model
Amcrest IP5M-1190W
Any other information that may be helpful
No response