Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. netcam_url authorization failed (Marco Sarria)
   2. Re: netcam_url authorization failed (Joris)
   3. Re: netcam_url authorization failed (Colin Law)
   4. Re: netcam_url authorization failed (tosiara)


----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Apr 2020 13:54:28 -0500
From: Marco Sarria <marcop...@gmail.com>
To: motion-user@lists.sourceforge.net
Subject: [Motion-user] netcam_url authorization failed
Message-ID: <d029499d-f44b-00fa-005d-f19c9fbfd...@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi,

My URL works with any RSTP viewer, example: 
rtsp://user:p...@domain.ddns.net:7070/stream0

IF config as follows:

netcam_url rtsp://domain.ddns.net/stream0

netcam_userpass user:pass

netcam_proxy 7070

Error Logs: "netcam_start: Invalid netcam_proxy (7070)"


IF config as follows putting port in URL and commenting netcam_proxy:

netcam_url rtsp://domain.ddns.net:7070/stream0

netcam_userpass user:pass

;netcam_proxy 7070

"Error Logs: "825242872 - Server returned 401 Unauthorized 
(authorization failed)"


IF config as follows putting port in URL and commenting netcam_proxy, 
and putting user:pass in URL:

netcam_url rtsp://user:p...@domain.ddns.net:7070/stream0

;netcam_userpass user:pass

;netcam_proxy 7070

"Error Logs: "825242872 - Server returned 401 Unauthorized 
(authorization failed)"


What am I doing wrong? Thank you,

Marco (zuwuko IRC)




------------------------------

Message: 2
Date: Fri, 17 Apr 2020 21:16:52 +0200
From: Joris <jo...@v5.be>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] netcam_url authorization failed
Message-ID:
        <CAL_dZs=ojca-mx+fho8jh+pqpzpe1ceyvzgv+flbqt2e1w9...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi,

Some replies in the text below

Op vr 17 apr. 2020 om 20:55 schreef Marco Sarria <marcop...@gmail.com>:

> netcam_proxy 7070
>

Weird, the config wiki states: "Motion will ignore this option for
rtsp/rtmp cameras."

"Error Logs: "825242872 - Server returned 401 Unauthorized

> (authorization failed)"
>

The obvious/redundant question is: are you *very* sure you are using the
right username/password? Does it work in another rtsp player? And are you
sure the protocol is rtsp, not rtmp or http?
And can you temporarily turn off authentication (in the server, thus in the
camera's settings) to test the proxy connection?

The only remaining issue I can think of is some cameras use digest
authentication, rather than basic auth. Motion doesn't do the former afaik,
I never found a solution other than turning off auth.


Kind regards,
J
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 3
Date: Sat, 18 Apr 2020 11:57:42 +0100
From: Colin Law <clan...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] netcam_url authorization failed
Message-ID:
        <CAL=0gLuvTYhdDtxnOEYWb98E8tnxqJ75eu=hwa1h64ozxwf...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

On Fri, 17 Apr 2020 at 19:55, Marco Sarria <marcop...@gmail.com> wrote:
>
> Hi,
>
> My URL works with any RSTP viewer, example:
> rtsp://user:p...@domain.ddns.net:7070/stream0
>
> IF config as follows:
>
> netcam_url rtsp://domain.ddns.net/stream0

Should that not be rtsp://domain.ddns.net:7070/stream0
and remove the proxy specification?

>
> netcam_userpass user:pass
>
> netcam_proxy 7070
>
> Error Logs: "netcam_start: Invalid netcam_proxy (7070)"
>
>
> IF config as follows putting port in URL and commenting netcam_proxy:
>
> netcam_url rtsp://domain.ddns.net:7070/stream0
>
> netcam_userpass user:pass
>
> ;netcam_proxy 7070
>
> "Error Logs: "825242872 - Server returned 401 Unauthorized
> (authorization failed)"
>
>
> IF config as follows putting port in URL and commenting netcam_proxy,
> and putting user:pass in URL:
>
> netcam_url rtsp://user:p...@domain.ddns.net:7070/stream0
>
> ;netcam_userpass user:pass
>
> ;netcam_proxy 7070
>
> "Error Logs: "825242872 - Server returned 401 Unauthorized
> (authorization failed)"
>
>
> What am I doing wrong? Thank you,
>
> Marco (zuwuko IRC)
>
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user



------------------------------

Message: 4
Date: Sat, 18 Apr 2020 14:54:07 +0300
From: tosiara <tosi...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] netcam_url authorization failed
Message-ID:
        <CACHTdwRZ180iNC=i+b12cdaa7nc9bgtgskylhembtmjsuet...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Yes, those should work:

netcam_url rtsp://domain.ddns.net:7070/stream0
netcam_userpass user:pass

What version of motion? What version of ffmpeg libs? Can you provide full
log with "-d 9"?

On Sat, Apr 18, 2020 at 1:59 PM Colin Law <clan...@gmail.com> wrote:

> On Fri, 17 Apr 2020 at 19:55, Marco Sarria <marcop...@gmail.com> wrote:
> >
> > Hi,
> >
> > My URL works with any RSTP viewer, example:
> > rtsp://user:p...@domain.ddns.net:7070/stream0
> >
> > IF config as follows:
> >
> > netcam_url rtsp://domain.ddns.net/stream0
>
> Should that not be rtsp://domain.ddns.net:7070/stream0
> and remove the proxy specification?
>
> >
> > netcam_userpass user:pass
> >
> > netcam_proxy 7070
> >
> > Error Logs: "netcam_start: Invalid netcam_proxy (7070)"
> >
> >
> > IF config as follows putting port in URL and commenting netcam_proxy:
> >
> > netcam_url rtsp://domain.ddns.net:7070/stream0
> >
> > netcam_userpass user:pass
> >
> > ;netcam_proxy 7070
> >
> > "Error Logs: "825242872 - Server returned 401 Unauthorized
> > (authorization failed)"
> >
> >
> > IF config as follows putting port in URL and commenting netcam_proxy,
> > and putting user:pass in URL:
> >
> > netcam_url rtsp://user:p...@domain.ddns.net:7070/stream0
> >
> > ;netcam_userpass user:pass
> >
> > ;netcam_proxy 7070
> >
> > "Error Logs: "825242872 - Server returned 401 Unauthorized
> > (authorization failed)"
> >
> >
> > What am I doing wrong? Thank you,
> >
> > Marco (zuwuko IRC)
> >
> >
> >
> > _______________________________________________
> > Motion-user mailing list
> > Motion-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/motion-user
> > https://motion-project.github.io/
> >
> > Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 166, Issue 13
********************************************

Reply via email to