incompatibility vlc-Axis w.r.t. rtsp basic authentication ?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
evd
Blank Cone
Blank Cone
Posts: 13
Joined: 19 Jan 2008 01:52

incompatibility vlc-Axis w.r.t. rtsp basic authentication ?

Postby evd » 20 Jan 2008 02:09

Hello

Until recently I used vlc version 0.8.4a. I connect to an Axis 207W IP camera as follows:
rtsp://user:pwd@192.168.1.26:554/mpeg4/media.amp
This worked fine.

Since I upgraded to version 0.8.6d (with liveMedia-2008.01.04,1) this does not work anymore. I see the following messages:
main debug: `rtsp://user:pwd@192.168.1.26:554/mpeg4/media.amp' gives access `rtsp' demux `' path `user:pwd@192.168.1.26:554/mpeg4/media.amp'
main debug: creating demux: access='rtsp' demux='' path='user:pwd@192.168.1.26:554/mpeg4/media.amp'
main debug: looking for access_demux module: 1 candidate
main debug: thread 137761792 (input) created at priority 0 (input/input.c:265)
live555 debug: DESCRIBE failed with 0: cannot handle DESCRIBE response: RTSP/1.0 401 Unauthorized
live555 debug: we will now try HTTP tunneling mode
live555 debug: DESCRIBE failed with 0: connect() failed: Connection refused
live555 error: Failed to connect with rtsp://user:pwd@192.168.1.26:554/mpeg4/media.amp

I've searched through the various vlc forum categories/topics, and found that (almost) all reported rtsp authentication problems are related to Axis products being connected to vlc. So the conclusion might be that it's not a bug or missing feature in live555, and it's also not a bug in the Axis software, but it's probably an interoperability problem that appears when connecting vlc (live555) to an Axis product.

I'm really looking forward to the new Axis firmware in which rtsp digest authentication is added. As a side effect, I hope that also the interoperability problem w.r.t. basic authentication will be solved.

But maybe I'm wrong. Is there anybody using rtsp basic authentication with an Axis camera? If yes, which type, and how does vlc connect to the camera?

Cheers.............. Erik

babitha
Blank Cone
Blank Cone
Posts: 25
Joined: 15 Jan 2008 08:01

Re: incompatibility vlc-Axis w.r.t. rtsp basic authentication ?

Postby babitha » 21 Jan 2008 12:01

hi erik,
I have an Axis 210 camera.I can connect to it using the request rtsp://uname:passwd@IP/mpeg4/media.amp.U need to go to camera interface page and check the Enable anonymous viewer login (no user name or password required) box.Then u can get the stream via vlc 0.8.6d.
Thanks,
Babitha

evd
Blank Cone
Blank Cone
Posts: 13
Joined: 19 Jan 2008 01:52

Re: incompatibility vlc-Axis w.r.t. rtsp basic authentication ?

Postby evd » 21 Jan 2008 20:02

Hi Babitha,

Thanks. If you enable "anonymous viewer" in your camera, you can access your camera without giving a user-id and password as follows:
rtsp://IP:PORT/mpeg4/media.amp

However, since my camera stream is aiming at a closed user group, I don't want to enable "anonymous viewer".

If I use the QuickTime player to open the stream:
rtsp://user:pwd@192.168.1.26:554/mpeg4/media.amp
I get the message "server not found", and the stream does not start playing.

However, if I use the QuickTime player to open the stream:
rtsp://192.168.1.26:554/mpeg4/media.amp
a pop-up window appears in which I am asked to fill-in user-id and password for this stream. After doing so, the stream starts playing.

Both ways (with and without user-id & password in the URL) to open the stream with VLC don't work. Starting VLC through the command line as follows:
$ vlc rtsp://user:pwd@192.168.1.26:554/mpeg4/media.amp
results in the following response:
VLC media player 0.8.6d Janus
Sending request: OPTIONS rtsp://user:pwd@192.168.1.26:554/mpeg4/media.amp RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2008.01.04)

Received OPTIONS response: RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN

Sending request: DESCRIBE rtsp://user:pwd@192.168.1.26:554/mpeg4/media.amp RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2008.01.04)

Received DESCRIBE response: RTSP/1.0 401 Unauthorized
CSeq: 2
WWW-Authenticate: Basic realm="/"


Starting VLC through the command line as follows:
$ vlc rtsp://192.168.1.26:554/mpeg4/media.amp --rtsp-user="user" --rtsp-pwd="pwd"
or
$ vlc rtsp://192.168.1.26:554/mpeg4/media.amp
results in the following response:
VLC media player 0.8.6d Janus
Sending request: OPTIONS rtsp://192.168.1.26:554/mpeg4/media.amp RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2008.01.04)

Received OPTIONS response: RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN

Sending request: DESCRIBE rtsp://192.168.1.26:554/mpeg4/media.amp RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2008.01.04)

Received DESCRIBE response: RTSP/1.0 401 Unauthorized
CSeq: 2
WWW-Authenticate: Basic realm="/"



Does anybody know how to pass user-id and password to start an rtsp session with basic authentication?

cheers........Erik

evd
Blank Cone
Blank Cone
Posts: 13
Joined: 19 Jan 2008 01:52

Re: incompatibility vlc-Axis w.r.t. rtsp basic authentication ?

Postby evd » 04 Mar 2008 23:40

Problem solved with v0.8.6e

cheers, Erik

niketrk
New Cone
New Cone
Posts: 4
Joined: 26 Jun 2008 10:25

Re: incompatibility vlc-Axis w.r.t. rtsp basic authentication ?

Postby niketrk » 26 Jun 2008 10:48

Hi,
With my IP camera, I am facing problem when authentication is enabled in RTSP.
I am using VLC 8.6h.
With quicktime it is working.
The Problem that I have found is, in case of quicktime, after "DESCRIBE" command, when "SETUP" command is sent, username and password is sent again for each "setup" packet.
In case of VLC, authentication information is sent only once with "DESCRIBE" command, but with "SETUP" command it is not sending and so authorization is failed.

I checked with live555 openRTSP.exe. It can successfully captured the video, when authentication is enabled.
So I think, VLC is not sending "SETUP" command properly.
Please help me out.
Thanks
Niket


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 15 guests