Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authentication issue with ip5m-T119ew #171

Open
AvidDabbler opened this issue Jan 26, 2021 · 0 comments
Open

Authentication issue with ip5m-T119ew #171

AvidDabbler opened this issue Jan 26, 2021 · 0 comments

Comments

@AvidDabbler
Copy link

AvidDabbler commented Jan 26, 2021

I am working with the ip5m-T119ew and was able to get it the screenshot up and running no problem, but having an issue with the streaming video.

I have tried it a couple different ways for the initial call of AmcrestCamera:

camera = AmcrestCamera(host=f'111.111.1.1', port=80, user=admin, password=password, protocol='rtsp').camera
camera = AmcrestCamera(host=f'{admin}:{password}@192.168.1.124', port=80, user=admin, password=password).camera
camera = AmcrestCamera(host=f'@192.168.1.124', port=80, user=admin, password=password).camera

When I try to connect with protocol="rtsp" this is the error that I get:

amcrest.exceptions.CommError: No connection adapters were found for 'rtsp://admin:admin@111.111.1.1:554/cgi-bin/magicBox.cgi?action=getMachineName'

When I try to connect with protocol="http" this is the error that I get:
amcrest.exceptions.CommError: 400 Client Error: Bad Request for url: http://111.111.1.1:80/cgi-bin/realmonitor.cgi?action=getStream&channel=1&subtype=1

was able to get this to work with cv2:
cv2.VideoCapture('rtsp://admin:admin@111.111.1.1:80/cam/realmonitor?channel=1&subtype=0') => works on any port

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant