[libav-api] RTSP Auth
mark.kenna at sureviewsystems.com
Fri Nov 25 19:14:04 CET 2011
On 25 Nov 2011, at 18:02, Luca Barbato <lu_zero at gentoo.org> wrote:
> On 25/11/11 14:08, Mark Kenna wrote:
>> On 23/11/2011 14:57, Luca Barbato wrote:
>>> On 23/11/11 15:00, Mark Kenna wrote:
>>>> Hi Guys
>>>> Does LibAv current support RTSP authentication (digest/basic)?
>>> Yes it does, see
>>>> I am connecting to a url of the form
>>>> "rtsp://user:firstname.lastname@example.org/rtspl?h264&channel=1" which works fine
>>>> in VLC but not through LibAv/FFMpeg. I just get the line "[rtsp @
>>>> 003EB7E0] method OPTIONS failed: 401 Unauthorized" when I try this
>>>> through the command line.
>>> Should work there as well, could you please provide an url we could test?
>> Hi Luca
>> I have traced the issue and it looks like LibAv is not creating the auth
>> response correctly. The details are as follows for the first call (OPTIONS)
>> realm="Use 'live' as User Name"
>> uri="rtsp://10.128.3.7:554/rtsp_tunnel?h26x=4&line=1&inst=1" (note that
>> this is behind a VPN so you wont be able to see it)
>> LibAv is generating the response as "ea214b7c7f218d0053ad9467003e14aa"
>> I have calculated the response should be
>> "5d7ee8885c6ae3c64055bdb9e21f88ca" using the information on
>> http://en.wikipedia.org/wiki/Digest_access_authentication. I have also
>> tried this against the OPTIONS request and it succeeds!
>> Does this help at all? If you need more information I will post whatever
>> you need.
> I'll have a look and ask Martin to check as well. He is using the feature so is strange to have it wrong.
> Could you please provide a whole wireshark dump so we can see the whole exchange between the two parties?
> Luca Barbato
> libav-api mailing list
> libav-api at libav.org
Will do first thing Monday. Maybe your using a newer version of digest
'auth-info' where this server expects 'auth'.
More information about the libav-api