Page 1 of 1

how to add base64 password?

Posted: Sat Oct 19, 2019 1:44 am
by nixnooi
from the official docs

https://zoneminder.readthedocs.io/en/la ... g-monitors

The camera we are using as an example here is a Foscam 9831W which is a 1280x960 RTSP camera, and the URL to access it’s feed is username:password@IPADDRESS:PORT/videoMain

I am currently trying to add a Tp-Link NC450. According to viewtopic.php?t=25757

Password: !! Your passwords base64 encoded version !!
This is what I am trying user=test password=test (dGVzdA==)
not-accep-S_20191018_212356.png
not-accep-S_20191018_212356.png (25.51 KiB) Viewed 4442 times
But when I try and save that I get an error.
auth-err-decode-S_20191018_212314.png
auth-err-decode-S_20191018_212314.png (25.36 KiB) Viewed 4442 times
If I leave it off - blue screen and log shows authentication error
auth-err-S_20191018_211627.png
auth-err-S_20191018_211627.png (31.38 KiB) Viewed 4442 times
I can use this directly in a browser
http://192.168.1.133:8080/

it prompts me for a user:pass - and then works

This is the first time I am trying base64 password in the URL like this. Searching the wiki was not much help.

Anyone please ....

Re: how to add base64 password?

Posted: Sat Oct 19, 2019 2:33 am
by bbunge
Try source type ffmpeg. Also verify the URL stream in VLC and when it works in VLC check the actual resolution. Be advised that hi res cams can run the server out of memory in tmpfs.

Re: how to add base64 password?

Posted: Sat Oct 19, 2019 2:42 am
by nixnooi
I have never used ffmpeg. Where does the user/pass go?

I am afraid I am going to run out of memory, but that is a different issue. :) Not there yet .. at least I don;t think so .. based on the log errors.

Re: how to add base64 password?

Posted: Sat Oct 19, 2019 3:00 am
by nixnooi
Oh wait - I found

Source Type: cURL (HTTP(S) only)

learnt something new!

Re: how to add base64 password?

Posted: Sat Oct 19, 2019 3:09 am
by nixnooi
Thanks bbunge you nudged me in the right direction.

It works now using the admin user and base64 password for admin. The test user does not work, but that's ok - I just made it because I was having problems.