Here is the output of a execution of a openrtsp process using live555 library: http://pastebin.com/DPutSWXT
In the last line I give an error, because I need to send in the authentication field a nonce value. Even if I pass the user and passwd for the connection, as in this example: $ ./ffplay rtsp://admin:[email protected]:554/onvif/profile4/media.smp FFplay version git-95fe12b, Copyright (c) 2003-2010 the FFmpeg developers built on Nov 26 2010 09:39:20 with gcc 4.4.5 configuration: --disable-gpl --enable-static --enable-libvpx --enable-pthreads --disable-stripping --prefix=/home/tenchi/projects/3rd/ffmpeg/install/usr/local/ --enable-libtheora --prefix=/home/tenchi/projects/3rd/ffmpeg/../build/ libavutil 50.33. 0 / 50.33. 0 libavcore 0.14. 0 / 0.14. 0 libavcodec 52.97. 2 / 52.97. 2 libavformat 52.87. 0 / 52.87. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.65. 0 / 1.65. 0 libswscale 0.12. 0 / 0.12. 0 rtsp://admin:[email protected]:554/onvif/profile4/media.smp: Invalid data found when processing input In the onvif request (before rtsp part), the server (the camera itself) sends me a nonce value, which I need to send back to the server to validate the connection. And I think this value is sended in the DESCRIBE request. 2010/11/26 Luca Barbato <[email protected]> > On 11/26/2010 12:27 PM, Leandro Santiago wrote: > > Hello to all. > > > > I need do comunicate with a camera ip in my application. This camera uses > a > > new protocol called Onvif. This protocol uses rtsp to stream the video. > The > > problem is; this camera uses a rtsp authenticated method, which needs > some > > extra data in the communications. Before the PLAY request I need to setup > > the connection, telling some authentication information, using a password > > digest. > > > > My question is: how can I do it using libavformat? I've just seen there > is a > > file named rtsp.h (http://www.ffmpeg.org/doxygen/trunk/rtsp_8h.html), > but I > > can't find this file in my libav compilation (I compiled from sources, in > > the master branch). In this file part of API or only for internal uses? > > Exactly what do you need? ffmpeg can use http/rtsp auth normally, could > you give us an example stream and tell which is the commandline, code > snippet used? > > lu > > -- > > Luca Barbato > Gentoo/linux > http://dev.gentoo.org/~lu_zero <http://dev.gentoo.org/%7Elu_zero> > > _______________________________________________ > libav-user mailing list > [email protected] > https://lists.mplayerhq.hu/mailman/listinfo/libav-user > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
