[vlc] Re: rtsp authentication

Mikhail T. mi+thun at aldan.algebra.com
Wed Feb 9 05:09:42 CET 2011


Hello!

According to 
http://mailman.videolan.org/pipermail/vlc/2005-June/011685.html, the 
links like rtsp://user:password@server/foo are supposed to work.

Indeed, I remember it working for me with earlier versions of vlc.

Unfortunately, the freshly-compiled vlc-1.1.7 refuses to play the 
password-protected stream offered by my camera. According to the verbose 
output, the last dialog with the camera's server is:

    vlc -vvv rtsp://mishutka:password@cam-kitchen/nphMpeg4/g726-640x480
    ....
    Opening connection to 192.168.1.12, port 554...
    ...remote connection opened
    Sending request: TEARDOWN
    rtsp://cam-kitchen:554/nphMpeg4/g726-640x480/ RTSP/1.0
    CSeq: 8
    Authorization: Basic bWlzaHV0a2E6dG9tY2F0
    User-Agent: LibVLC/1.1.7 (LIVE555 Streaming Media v2010.06.22)
    Session: 10


    Received 54 new bytes of response data.
    Received a complete TEARDOWN response:
    RTSP/1.0 501 Not Implemented
    CSeq: 8
    Session: 10

It then proceeds to give me a completely bogus error message:

    [0x824422e70] main demux debug: no access_demux module matching
    "rtsp" could be loaded
    [0x824422e70] main demux debug: TIMER module_need() : 60559,281 ms -
    Total 60559,281 ms / 1 intvls (Avg 60559,281 ms)
    [0x8242659b0] main input debug: creating access 'rtsp'
    path='mishutka:password at cam-kitchen/nphMpeg4/g726-640x480'
    [0x82441eb70] main access debug: looking for access module: 1 candidate
    [0x82441eb70] main access debug: net: connecting to mishutka port 0
    [0x82441eb70] main access error: cannot resolve mishutka port 0 :
    hostname nor servname provided, or not known
    [0x82441eb70] access_realrtsp access error: cannot connect to mishutka:0
    [0x82441eb70] access_realrtsp access debug: could not connect to:
    mishutka:password at cam-kitchen/nphMpeg4/g726-640x480
    [0x82441eb70] main access debug: no access module matching "rtsp"
    could be loaded
    [0x82441eb70] main access debug: TIMER module_need() : 85,735 ms -
    Total 85,735 ms / 1 intvls (Avg 85,735 ms)
    [0x82441eb70] main access debug: waitpipe: object killed
    [0x8242659b0] main input error: open of
    `rtsp://mishutka:password@cam-kitchen/nphMpeg4/g726-640x480' failed:
    (null)

Mplayer has no problem getting the stream, so it must be possible :-) 
Unfortunately, mplayer does not have a decoder for g.726, which camera 
uses for audio, so I can't use it either...

Please, advise. Thanks!

    -mi




More information about the vlc mailing list