I spent whole weekend on it (ffmpeg 07/07/2014) and can say -NO! Perhaps ffmpeg has RTSP codes for digest/auth, but they do not work there. I always got 401 error from IP camera with digest/auth and good work with basic/auth.
VLC with live555 works well with any authentication.
Please be aware that HTTP basic authentication is passed in the URL string as in your example but digest is md5 encoded and passed as a separate element in the HTTP request.
also the http://www.live555.com/ library does support http/digest authentication, i have tested, it works.
Yes,
ffmpeg
does support RTSP authentication using theffplay
command.Try using the
ffplay
command instead:This works for me.
source (adapted from the commands used to authenticate ftp and others using the same syntax):
ffmpeg.org
I spent whole weekend on it (ffmpeg 07/07/2014) and can say -NO! Perhaps ffmpeg has RTSP codes for digest/auth, but they do not work there. I always got 401 error from IP camera with digest/auth and good work with basic/auth.
VLC with live555 works well with any authentication.
ffmpeg support rtsp authentication i think you might be missing quotes covering rstp URL.
examples:
Not working :
ffmpeg -i rtsp://user:pass@x.x.x.x/VideoString
Working :
ffmpeg -i "rtsp://user:pass@x.x.x.x/VideoString"
It has been quite q while, not sure what's the story back in 11, but yes, ffmpeg now support so.
ffmpeg -i rtsp://user:pass@x.x.x.x/VideoString
works.
Yea Im having problems with this too. It seems Digest authentication is missing. there are a few mailing list comments about adding it in. see http://web.archiveorange.com/archive/v/yR2T4nBtThzJs27hqDLb but nothing conclusive.
Please be aware that HTTP basic authentication is passed in the URL string as in your example but digest is md5 encoded and passed as a separate element in the HTTP request.
also the http://www.live555.com/ library does support http/digest authentication, i have tested, it works.
to test conectivity use the testProgs in live555
FFmpeg appears to support Digest authentication, at least as of this March 25, 2010 commit: https://github.com/FFmpeg/FFmpeg/commit/855e7732c6bcc7d52cd0863407a721c2bf00fcf1
The logic implementing the digest computation is mostly in this file: https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/httpauth.c
According to this changelog, that made it into the version 0.6 release: