Re: using curl for streaming rtsp/rtp over tcp

2021-06-20 Thread jeremy--- via curl-library
On Sun, 20 Jun 2021, at 15:14, Abhijeet Bhagat via curl-library wrote: > i am using libcurl to send rtsp commands (over tcp) to a server. I did a very similar exercise quite a few years ago (but am a bit rusty on the subject) > i was expecting CURLOPT_WRITEFUNCTION to get repeatedly

using curl for streaming rtsp/rtp over tcp

2021-06-20 Thread Abhijeet Bhagat via curl-library
i am using libcurl to send rtsp commands (over tcp) to a server. usually, when i want to stream over udp, i have to allocate udp ports and share them with the server in the setup command. however, when using tcp, i can tell the server to start sending rtp packets over the same tcp port used

Re: Does libcurl support all streaming relative protocols, e.g., RTP/RTCP/RTSP and so on?

2020-12-31 Thread Hongyi Zhao via curl-library
On Fri, Jan 1, 2021 at 10:08 AM René Berber via curl-library wrote: > > On 12/31/2020 6:14 PM, Hongyi Zhao via curl-library wrote: > > > On Fri, Jan 1, 2021 at 7:51 AM Daniel Stenberg wrote: > >> > >> On Thu, 31 Dec 2020, Hongyi Zhao via curl-library wrot

Re: Does libcurl support all streaming relative protocols, e.g., RTP/RTCP/RTSP and so on?

2020-12-31 Thread René Berber via curl-library
On 12/31/2020 6:14 PM, Hongyi Zhao via curl-library wrote: On Fri, Jan 1, 2021 at 7:51 AM Daniel Stenberg wrote: On Thu, 31 Dec 2020, Hongyi Zhao via curl-library wrote: I only see the RTSP protocol is supported by libcurl, but for streaming media relative protocols, I also learned

Re: Does libcurl support all streaming relative protocols, e.g., RTP/RTCP/RTSP and so on?

2020-12-31 Thread Hongyi Zhao via curl-library
On Fri, Jan 1, 2021 at 7:51 AM Daniel Stenberg wrote: > > On Thu, 31 Dec 2020, Hongyi Zhao via curl-library wrote: > > > I only see the RTSP protocol is supported by libcurl, but for streaming > > media relative protocols, I also learned that the RTP/RTCP/RTSP protocols >

Re: Does libcurl support all streaming relative protocols, e.g., RTP/RTCP/RTSP and so on?

2020-12-31 Thread Daniel Stenberg via curl-library
On Thu, 31 Dec 2020, Hongyi Zhao via curl-library wrote: I only see the RTSP protocol is supported by libcurl, but for streaming media relative protocols, I also learned that the RTP/RTCP/RTSP protocols are all needed to co-operate for complete the whole job. Out of those three, only RTSP

Does libcurl support all streaming relative protocols, e.g., RTP/RTCP/RTSP and so on?

2020-12-31 Thread Hongyi Zhao via curl-library
Hi, I noticed the following description on the curl's GitHub repo: A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP

RE: How to get a frame of image data from RTSP stream

2020-07-06 Thread Erik Janssen via curl-library
> Other documents I found that can use CURLOPT_INTERLEAVEFUNCTION and > CURLOPT_INTERLEAVEDATA to get > RTP data from RTSP server. But I still don't understand where I can get image > data. Curl only does the RTSP for you, like is the case with HTTP. RTSP-interleaving you can see

How to get a frame of image data from RTSP stream

2020-07-06 Thread Viết Trung Trần via curl-library
I want to capture a frame of an image from the ip camera with Curl. Is it possible? I got an example in rtsp, it works well but I don't know where I can get image data. Other documents I found that can use CURLOPT_INTERLEAVEFUNCTION and CURLOPT_INTERLEAVEDATA to get RTP data from RTSP server

RE: rtsp curl code not playing video

2020-02-14 Thread Erik Janssen via curl-library
The url you generate is a bit flaky I think it should be like this: SETUP rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream/trackID=2 RTSP/1.0 PLAY rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream/ RTSP/1.0 I get media from it using my curl-based client, unfortunately own

Re: rtsp curl code not playing video

2020-02-14 Thread Dan Fandrich via curl-library
On Fri, Feb 14, 2020 at 02:39:16PM +0530, Nishad DESHMUKH via curl-library wrote: > after compilation and run the link video not played . my input was libcurl doesn't play video. It will happily download a bitstream containing video content and supply it to your application, but what that

rtsp curl code not playing video

2020-02-14 Thread Nishad DESHMUKH via curl-library
after compilation and run the link video not played . my input was INPUT TO PROGRAM: ./a.out rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream/ OUTPUT : RTSP request V1.0 Project web site: https://github.com/BackupGGCode/rtsprequest Requires curl V7.20 or greater curl

how to enable RTSP,SMTP,and RTMP protocols in curl

2020-01-31 Thread lik hn via curl-library
I'm using curl 7.61.0. version but it doesn't containe rtmp,rtsp,smtp protocols.but i want to enable this protocols so what are the changes i want to make in curl_7.61.0.bb file please help me thankyou --- Unsubscribe: https

multiple rtsp connections to same host in multi interface

2019-11-04 Thread Erik Janssen via curl-library
Hi, I use libcurl for http, plain sockets and rtsp. rtsp is a bit problematic because a transfer in rtsp context consists of a series of steps which are each individual transfers to libcurl. At each curl_multi_remove_handle() - curl_multi_add_handle() to get at the next rtsp step the link

[SECURITY AVISORY] curl: RTSP bad headers buffer over-read

2018-05-16 Thread Daniel Stenberg
RTSP bad headers buffer over-read = Project curl Security Advisory, May 16th 2018 - [Permalink](https://curl.haxx.se/docs/adv_2018-b138.html) VULNERABILITY - curl can be tricked into reading data beyond the end of a heap based buffer used to store

Re: RTSP and ONVIF camera streaming protocol

2018-03-19 Thread Daniel Stenberg
On Sat, 17 Mar 2018, Jean Noel Prigent wrote: my question is: how can I add the field "Require:..." in DESCRIBE request header? CURLOPT_HTTPHEADER[*] ? [*] = https://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html -- / daniel.haxx.se

RTSP and ONVIF camera streaming protocol

2018-03-17 Thread Jean Noel Prigent
Hi, I am trying to use libcurl to manage rtsp streaming with a D-Link camera. ONVIF streaming specification (https://www.onvif.org/specs/stream/ONVIF-Streaming-Spec-v221.pdf) introduced an audio backchannel feature . A field 'require' is mandatory in DESCRIBE request as in this example

[SECURITY ADVISORY] curl: RTSP RTP buffer over-read

2018-03-14 Thread Daniel Stenberg
RTSP RTP buffer over-read = Project curl Security Advisory, March 14th 2018 - [Permalink](https://curl.haxx.se/docs/adv_2018-b047.html) VULNERABILITY - curl can be tricked into copying data beyond end of its heap based buffer. When asked to transfer an RTSP

Re: rtsp

2017-08-09 Thread Erik Janssen
in case of UDP the data does not flow through curl, you must have adapted the sample in that case? lots of devices have a sloppy rtsp implementation, that could play a role. You already check with VLC, i'd say use wireshark to compare vlc rtsp with traffic from curl, then you know erik

Re: rtsp

2017-08-09 Thread folkert
Ah darn indeed that's the problem! Strangely enough 1 camera does not work at all and the other only with udp. On Wed, Aug 09, 2017 at 10:58:09AM +, Erik Janssen wrote: > Hi, > > my guess: upgrade to newer version. RTSP Authentication is only handled from > 7.45 or s

Re: rtsp

2017-08-09 Thread Erik Janssen
Hi, my guess: upgrade to newer version. RTSP Authentication is only handled from 7.45 or so. Erik Oorspronkelijk bericht Van: folkert <folk...@vanheusden.com> Datum: 09-08-17 11:58 (GMT+01:00) Aan: curl-library@cool.haxx.se Onderwerp: rtsp Hi, Tring to get

rtsp

2017-08-09 Thread folkert
Hi, Tring to get https://curl.haxx.se/libcurl/c/rtsp.html to work. The cameras are known to work; I can view their rtsp stream using vlc. Now when I run the program from the url above, nothing happens. I did a tcpdump of the ports it should receive on (tcpdump -i eth0 -n port 1234 \|\| port 1235

RE: multi interface and RTSP interleved

2017-01-18 Thread Erik Janssen
Hi Pawel, Sorry to respond months after the fact. I scanned the list for RTSP and found this one. Daniels comment is really important. You must set the CURL_RTSPREQ_RECEIVE before adding it to the multi, otherwise the handle has nothing to do and will fall-through like you observed. So

Re: multi interface and RTSP interleved

2016-09-14 Thread Paweł Kopalko
Hi first of all thanks for the interest in this case. I've made some traces : code: http://pastebin.com/sxUhybck easy trace: http://pastebin.com/jNWXFdRQ multi trace: http://pastebin.com/LHDFhzcM Well, in general I'm still stuck I took easy_perform and made some traces there the receive function

Re: multi interface and RTSP interleved

2016-09-13 Thread Daniel Stenberg
On Tue, 13 Sep 2016, Paweł Kopalko wrote: You remove the same easy handle twice? And you set an option in between which looks really strange? I found out I remove the handle twice after I posted the example I fixed that but there is no change in the behaviour. The idea about the "strange"

multi interface and RTSP interleved

2016-09-13 Thread Paweł Kopalko
Hi, >What libcurl version are you using on what platform? sorry I forgot to state the "what-where-why" ;) I'm using a curl-7.49.1 compiled as static library with a ubuntu 16.04 32bit (for POC, the target system is MIPS), the rtsp server is spook on a webcam, I use interleave

Re: multi interface and RTSP interleved

2016-09-13 Thread Daniel Stenberg
On Mon, 12 Sep 2016, Paweł Kopalko wrote: I'm using curl with RTSP/RTP streams, until now I've used easy_perform, which worked ok for me, but since I had to move to several threads there are complications, and thus I need to use multi interface since I understand that it will help me

multi interface and RTSP interleved

2016-09-12 Thread Paweł Kopalko
Hi, first of all hello to everyone (since this is my first mail here ;) ) I'm using curl with RTSP/RTP streams, until now I've used easy_perform, which worked ok for me, but since I had to move to several threads there are complications, and thus I need to use multi interface since I understand

Re: RTSP over SSL

2016-08-12 Thread Daniel Stenberg
On Fri, 12 Aug 2016, Dan Burkett wrote: Using libcurl, I'm attempting to use RTSPS (RTSP over SSL). Starting with the example curl-7.50.1/docs/examples/rtsp.c, I've added the curl SSL options borrowed from the FTPS example, but they don't seem to have any affect. I don't blame you

RTSP over SSL

2016-08-12 Thread Dan Burkett
Using libcurl, I'm attempting to use RTSPS (RTSP over SSL). Starting with the example curl-7.50.1/docs/examples/rtsp.c, I've added the curl SSL options borrowed from the FTPS example, but they don't seem to have any affect. curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL

RE: [Patch] accept any RTSP session id

2016-08-11 Thread Daniel Stenberg
RTSP implementation: mix up of callback handlers that occur when having multiple sessions open with a single host in the multi interface. That one is less isolated and requires deeper understanding of the lib. Still climbing that hill :) Lovely. I can help out with general libcurl understanding

RE: [Patch] accept any RTSP session id

2016-08-11 Thread Erik Janssen
the slate will be clean to finally put my attention to the remaining issue of the libcurl RTSP implementation: mix up of callback handlers that occur when having multiple sessions open with a single host in the multi interface. That one is less isolated and requires deeper understanding of the lib

RE: [Patch] accept any RTSP session id

2016-08-11 Thread Daniel Stenberg
On Thu, 11 Aug 2016, Erik Janssen wrote: There is a philosophy aspect. Does curl strive to accept valid input only, or does it mean to handle as good as possible (but 'no guarantees') flaky input? My style is the latter We're basically all over the map but we lean towards the later. We

RE: [Patch] accept any RTSP session id

2016-08-11 Thread Erik Janssen
Hi, > Ok, I was sloppy and didn't run the tests before I merged this. It turns out > we have test 569 > that verifies that we don't accept spaces as part of the RTSP session id. > Like this: > > Session:\$extraspaces ignore-this-part---;foo=bar > > So, do

Re: [Patch] accept any RTSP session id

2016-08-11 Thread Daniel Stenberg
On Tue, 9 Aug 2016, Erik Janssen wrote: I propose the following small change to make libcurl work in communication with gstreamer-based RTSP servers. See attached patch against 7.50.1. The original code validates the session id to be in accordance with the RFC. I think it is better not to do

Re: [Patch] accept any RTSP session id

2016-08-10 Thread Daniel Stenberg
On Tue, 9 Aug 2016, Erik Janssen wrote: I propose the following small change to make libcurl work in communication with gstreamer-based RTSP servers. Thanks! Merged in commit e577c43bb5c6 just now. -- / daniel.haxx.se --- List

Re: [Patch] accept any RTSP session id

2016-08-09 Thread Daniel Stenberg
On Tue, 9 Aug 2016, Erik Janssen wrote: The original code validates the session id to be in accordance with the RFC. I think it is better not to do that: Sounds sensible to me. I'm up for merging it unless someone objects. -- / daniel.haxx.se

[Patch] accept any RTSP session id

2016-08-09 Thread Erik Janssen
Hi, I propose the following small change to make libcurl work in communication with gstreamer-based RTSP servers. See attached patch against 7.50.1. The original code validates the session id to be in accordance with the RFC. I think it is better not to do that: - For curl the actual

RE: RTSP Interleaved Multi Interface

2016-03-04 Thread Erik Janssen
Hi Chris, I am sorry to reply so late, I use RTSP interleaved all the time. Did you get it going? These are the options I set to initialize: my_curl_easy_setopt(m_curl, CURLOPT_INTERLEAVEDATA, (void*)this); my_curl_easy_setopt(m_curl, CURLOPT_INTERLEAVEFUNCTION, rtsp_interleave_callback_s

Re: RTSP Interleaved Multi Interface

2016-02-19 Thread Ray Satiro via curl-library
On 2/15/2016 9:59 AM, Chris Ward wrote: I am trying to get interleaved RTP over RTSP working with the multi interface and am struggling to make any progress. I have successfully got the rest of the RTSP commands working with the multi and easy interfaces without any difficulties at all. I

RTSP Interleaved Multi Interface

2016-02-15 Thread Chris Ward
Hi, I am trying to get interleaved RTP over RTSP working with the multi interface and am struggling to make any progress. I have successfully got the rest of the RTSP commands working with the multi and easy interfaces without any difficulties at all. I can see the incoming interleaved RTP data

RE: rtsp with the multi interface mixes up the handles

2015-09-03 Thread Erik Janssen
to extend rtspd a bit, sequence would be like: - start N interleaved-rtp rtsp sessions using multi interface - for all of them: - get the SSRC from from the SETUP response and convert to int - set the SSRC as INTERLEAVEDATA - In the interleave function compare the SSRC in the rtp pa

rtsp with the multi interface mixes up the handles

2015-08-28 Thread Erik Janssen
Hi, Libcurl 7.43 RTSP with RTP interleaving using the multi interface only works correct with one session per host at a time. Each of my curl handles has a different CURLOPT_INTERLEAVEDATA. If I play more than one session from a single host then curl may pass the CURLOPT_INTERLEAVEDATA

Re: rtsp with the multi interface mixes up the handles

2015-08-28 Thread Daniel Stenberg
On Fri, 28 Aug 2015, Erik Janssen wrote: RTSP with RTP interleaving using the multi interface only works correct with one session per host at a time. Each of my curl handles has a different CURLOPT_INTERLEAVEDATA. If I play more than one session from a single host then curl may pass

Re: Patch for RTSP DESCRIBE returning no content

2015-08-20 Thread Daniel Stenberg
On Mon, 17 Aug 2015, Erik Janssen wrote: I'd like to provide the attached patch on 7.43. It respects section 4.4 of rfc2326: If the Content-Length header is absent, a length 0 must be assumed. It will prevent libcurl from hanging on DECRIBE request that got refused for whatever reason

Re: Patch for basic/digest authentication in RTSP

2015-08-20 Thread Daniel Stenberg
On Mon, 17 Aug 2015, Erik Janssen wrote: Please find attached a patch for RTSP authentication, credits to Jim Hollinger. Original at: http://comments.gmane.org/gmane.comp.web.curl.library/32043 Thanks, merged! -- / daniel.haxx.se

Patch for RTSP DESCRIBE returning no content

2015-08-17 Thread Erik Janssen
Hi, With reference to this patch from years ago from Jim Hollinger: http://comments.gmane.org/gmane.comp.web.curl.library/32043 I'd like to provide the attached patch on 7.43. It respects section 4.4 of rfc2326: If the Content-Length header is absent, a length 0 must be assumed. It will prevent

Patch for basic/digest authentication in RTSP

2015-08-17 Thread Erik Janssen
Hello all, Please find attached a patch for RTSP authentication, credits to Jim Hollinger. Original at: http://comments.gmane.org/gmane.comp.web.curl.library/32043 This patch is the unmodified authentication-part of it, I only made it against 7.43 to make it easier to use today Regards, Erik

Re: How to stream mpeg4 on an Axis Camera using the RTSP protocol?

2015-07-28 Thread Gisle Vanem
Frank Chang wrote: My manager and I have a question about how to use libcurl on an Axis camera with dual h264 and mpeg4 streaming hardware support to stream MPEG4 with the RTSP protocol. I read the following curl-library archived article from Jeremy 4 years ago and I was wondering

How to stream mpeg4 on an Axis Camera using the RTSP protocol?

2015-07-28 Thread Frank Chang
My manager and I have a question about how to use libcurl on an Axis camera with dual h264 and mpeg4 streaming hardware support to stream MPEG4 with the RTSP protocol. I read the following curl-library archived article from Jeremy 4 years ago and I was wondering if anyone could

Re: How to stream mpeg4 on an Axis Camera using the RTSP protocol?

2015-07-28 Thread Daniel Stenberg
On Tue, 28 Jul 2015, Frank Chang wrote: My manager and I have a question about how to use libcurl on an Axis camera with dual h264 and mpeg4 streaming hardware support to stream MPEG4 with the RTSP protocol. I read the following curl-library archived article from Jeremy 4 years ago and I

Could someone advise me if there is a mistake in my RTSP URL or libcurl RTSP DESCRIBE C++ function?

2015-07-19 Thread Frank Chang
Daniel, Tors, Yang-Tse or members of the esteemed libcurl mailing list: I am obtaining a HTTP error 400 in response to the folowing RTSP URL being processed by the function shown below. DESCRIBE rtsp://root:pass@192.168.1.47/axis-media/media.amp ?videocodec=h264/ The IP camera I am using

RE: rtsp authentication not working

2014-10-18 Thread Erik Janssen
Hi, Thanks for your feedback. Will give it a try. Regards, Erik -Original Message- From: curl-library [mailto:curl-library-boun...@cool.haxx.se] On Behalf Of Daniel Stenberg Sent: vrijdag 3 oktober 2014 14:13 To: libcurl development Subject: RE: rtsp authentication not working On Wed

RE: rtsp authentication not working

2014-10-03 Thread Daniel Stenberg
On Wed, 1 Oct 2014, Erik Janssen wrote: Stumbled on section 9.2 in the RFC 2326, which is explicit: Unlike HTTP, an RTSP message MUST contain a Content-Length header whenever that message contains a payload. Otherwise, an RTSP packet is terminated with an empty line immediately following

RE: rtsp authentication not working

2014-09-29 Thread Erik Janssen
? With HTTP it is feasible for a server to provide content in case of authentication failure, like a 'no trespassing' page for example. RTSP is different. The DESCRIBE, SETUP, PLAY is a machine-machine interaction and there is no way to sent human-readable stuff for viewing in case something is wrong

rtsp authentication not working

2014-09-26 Thread Erik Janssen
Hi, I noticed Basic/Digest authentication is not supported in libcurl. There are some older posts about this on the mailing list. There is this patch from long ago: http://comments.gmane.org/gmane.comp.web.curl.library/32043 I applied this to the 7.38 sources and recompiled. It works like a

Re: rtsp authentication not working

2014-09-26 Thread Daniel Stenberg
in the stream and we may never find it again. It happens all the time. Persistance and patience are keys. Other common reasons include that we don't get good enough code, lack documentation and don't get tests for new things. RTSP of course generally lack in the test department and this patch

libcurl RTSP client implementation c programming issue

2014-05-26 Thread Gerard Castillo Lasheras
Hello, I'm implementing a RTSP client in c programming. In order to properly configure the RTP/RTCP sessions I require having the transmission port of the RTSP server (to send RTCP RR to it). I've been looking on the documentation but without success. I guess that it might be possible. Am I

Re: libcurl RTSP client implementation c programming issue

2014-05-26 Thread Daniel Stenberg
On Mon, 26 May 2014, Gerard Castillo Lasheras wrote: I'm implementing a RTSP client in c programming. In order to properly configure the RTP/RTCP sessions I require having the transmission port of the RTSP server (to send RTCP RR to it). I've been looking on the documentation but without

RTSP

2014-05-16 Thread Daniel Bell
Hello. I am attempting to use the RTSP sample. How would you record an RTSP stream to a server? */* send RTSP PLAY request */ **static* *void* *rtsp_play*(CURL *curl, *const* *char* *uri, *const* *char* *range) { CURLcode res = CURLE_OK; printf(*\nRTSP: PLAY %s\n*, uri

Re: bug in RTSP handling in curl 7.35.0 and earlier

2014-03-20 Thread Daniel Stenberg
On Thu, 20 Mar 2014, mhasselb...@versanet.de wrote: there seems to be a bug in RSTP handling of libcurl. In curl-7.35.0 and earlier versions the Session tag is being handled improperly. Thanks! I pushed a fix to git just now. -- / daniel.haxx.se

bug in RTSP handling in curl 7.35.0 and earlier

2014-03-20 Thread mhasselb...@versanet.de
Hi, there seems to be a bug in RSTP handling of libcurl. In curl-7.35.0 and earlier versions the Session tag is being handled improperly. In file lib/rtsp.c, function Curl_rtsp_parseheader, lines 765+ you find 765 /* Find the first non-space letter */ 766 start = header + 9; 767 while(*start

Re: How to change the content sent by Describe method of RTSP

2014-03-13 Thread jeremy
and password? You could try replacing CURLAUTH_ANY with CURLAUTH_BASIC, that will make the password visible in your wireshark trace. I think you should see in your trace something like the RTSP options request sent, an initial 401 response from the camera, the RTSP options resent then the 200 response

Re: How to change the content sent by Describe method of RTSP

2014-03-13 Thread zy wu
user and password? You could try replacing CURLAUTH_ANY with CURLAUTH_BASIC, that will make the password visible in your wireshark trace. I think you should see in your trace something like the RTSP options request sent, an initial 401 response from the camera, the RTSP options resent

Re: How to change the content sent by Describe method of RTSP

2014-03-12 Thread Daniel Stenberg
On Tue, 11 Mar 2014, jer...@fastmail.co.uk wrote: This is a little tricky, there is an outstanding bug with RTSP authentication using libcurl. There is a temporary patch you can apply to your own copy of libcurl posted here http://curl.haxx.se/mail/lib-2014-02/0008.html Just pay attention

Re: How to change the content sent by Describe method of RTSP

2014-03-12 Thread zy wu
your commit for that patch . If you know how to do please show me , thanks a lot. Best Regards zy.wu 2014-03-12 16:03 GMT+08:00 Daniel Stenberg dan...@haxx.se: On Tue, 11 Mar 2014, jer...@fastmail.co.uk wrote: This is a little tricky, there is an outstanding bug with RTSP authentication

How to change the content sent by Describe method of RTSP

2014-03-11 Thread zy wu
Hi, All: I want to use the RTSP to receive stream data, but when connected to the IP Camera need permission. The default Describe request does't include user and password infomation, so I need to change the content of Describe request, but where to modify the content to be sent ? Please

Re: How to change the content sent by Describe method of RTSP

2014-03-11 Thread jeremy
On Tue, Mar 11, 2014, at 8:03, zy wu wrote: I want to use the RTSP to receive stream data,  but when connected to the IP Camera need permission. This is a little tricky, there is an outstanding bug with RTSP authentication using libcurl. There is a temporary patch you can apply to your own

How to get a frame of image data from rtsp stream

2014-02-07 Thread zy wu
I want to capture a frame of image from the ip camera with libcurl (7.34), used the example source rtsp.c and I defined a call back function. Packet capture tool shows camera is transmitting data to me. I used CURLOPT_INTERLEAVEDATA parameter to set the receive buffer, and used

Re: How to get a frame of image data from rtsp stream

2014-02-07 Thread jeremy
On Fri, Feb 7, 2014, at 8:07, zy wu wrote: I used CURLOPT_INTERLEAVEDATA parameter to set the receive buffer, and used CURLOPT_INTERLEAVEFUNCTION parameter to set the callback function The CURLOPT_INTERLEAVEFUNCTION is used for receiving RTP over RTSP. The interleave function is called

Re: How to get a frame of image data from rtsp stream

2014-02-07 Thread zy wu
, and used CURLOPT_INTERLEAVEFUNCTION parameter to set the callback function The CURLOPT_INTERLEAVEFUNCTION is used for receiving RTP over RTSP. The interleave function is called in response to performing a CURL_RTSPREQ_RECEIVE. The perform request will usually return after RTP over RTSP data

Re: [PATCH] RTSP-Authentication

2014-02-04 Thread Martín Germán Duarte
Hi Jeremy, you are right. I wanted to say that this issue is not covered in the RTSP implementation in the libcurl 7.3.1. BR, Martin. -- Martín Germán RD Project Engineer Audiovisual Unit Fundació i2CAT www.i2cat.net Phone +34

Re: [PATCH] RTSP-Authentication

2014-02-04 Thread Martín Germán Duarte
* I made a patch to libcurl 7.3.1. This patch deals with the 401 Unauthorized * * message in the RTSP negotiation, this message is not part of the RTSP * * standard, but several IP cameras and RTSP servers need authentication to * * work properly. * * * * I have attached the readme.patch

Re: [PATCH] RTSP-Authentication

2014-02-04 Thread Daniel Stenberg
- Have you ran the test suite successfully with your patch applied? It failed already on test 67 when I tried it. Yes, with many IP cameras (Axis cameras) and VLC as a RTSP server, and work properly. You're missing my point: your change breaks libcurl in other ways. We can't have that. All

[PATCH] RTSP-Authentication

2014-02-03 Thread Martín Germán Duarte
Hi all, I made a patch to libcurl 7.3.1. This patch deals with the 401 Unauthorized message in the RTSP negotiation, this message is not part of the RTSP standard, but several IP cameras and RTSP servers need authentication to work properly. I have attached the readme.patch and the curl.patch

Re: [PATCH] RTSP-Authentication

2014-02-03 Thread jeremy
On Mon, Feb 3, 2014, at 8:48, Martín Germán Duarte wrote: This patch deals with the 401 Unauthorized message in the RTSP negotiation, this message is not part of the RTSP standard This is documented in RFC 2326 Appendix D 'Minimal RTSP implementation' section D.1.2. Hi all, I made a patch

Re: libcurl RTSP not using correct control URI?

2013-11-13 Thread jeremy
need to tell libcurl to use the alternate URI before the RTSP SETUP is performed. Send a DESCRIBE, parse the SDP that was returned for the optional new URI, then pass the new URI in the SETUP and PLAY stages. --- List admin: http

libcurl RTSP not using correct control URI?

2013-11-12 Thread Paul Bergen
I'm using libcurl 7.33.0 and trying to fetch an RTSP stream from an IP camera. I compiled the sample app here: http://curl.haxx.se/libcurl/c/rtsp.html and am passing in the URL: rtsp:// 192.168.2.14/live/av0?user=adminpasswd=admin It plays fine in VLC, but in curl I get a: 415 unsupported media

Re: RTSP and authentication

2013-09-11 Thread Daniel Stenberg
On Wed, 11 Sep 2013, Guido Schade wrote: Adding the standard auth settings (which work for http requests) (or having username / password in the URI) does not seem to help. ... What am I missing? I don't know. Looks like it could be a bug. RTSP is not one of the most used protocols

Re: RTSP and authentication

2013-09-11 Thread Guido Schade
Thanks for your reply. Never mind, using libav for this now, just since I was using libcurl for http requests I thought I could use it for RTSP as well. Cheers On Thu, Sep 12, 2013 at 8:06 AM, Daniel Stenberg dan...@haxx.se wrote: On Wed, 11 Sep 2013, Guido Schade wrote: Adding

RTSP and authentication

2013-09-10 Thread Guido Schade
Hi everyone, I am using the example libcurl rtsp.c and can't seem to get RTSP authentication working. http://curl.haxx.se/libcurl/c/rtsp.html RTSP: DESCRIBE rtsp://admin:admin@xxx:xx/video Writing SDP to 'video.sdp' *RTSP/1.0 401 Unauthorized* CSeq: 2 Date: Wed, Sep 11 2013 00:39:00 GMT WWW

Please Help: How to receive asyn RTSP Server messages in RTSP client through curl

2013-07-16 Thread Amit Pal
Hi All, So till now I am able to send and receive a play request using curl library. Now I have following question: 1) How can I receive async message from Server on my Client. for e.g. an EOF event? Basically Curl has socket and when we call curl_easy_perform() it send and receives the

Re: Please Help: How to receive asyn RTSP Server messages in RTSP client through curl

2013-07-16 Thread Amit Pal
In addition to that. for e.g. how can I receive an ANNOUNCE message sent by Server? On Tue, Jul 16, 2013 at 11:31 AM, Amit Pal amit.c...@gmail.com wrote: Hi All, So till now I am able to send and receive a play request using curl library. Now I have following question: 1) How can I

Re: Please Help: How to receive asyn RTSP Server messages in RTSP client through curl

2013-07-16 Thread Amit Pal
Can someone please reply for this as I am really stuck here. On Tue, Jul 16, 2013 at 12:01 PM, Amit Pal amit.c...@gmail.com wrote: In addition to that. for e.g. how can I receive an ANNOUNCE message sent by Server? On Tue, Jul 16, 2013 at 11:31 AM, Amit Pal amit.c...@gmail.com wrote: Hi

Re: Getting version error even though my version is latest for RTSP

2013-07-12 Thread Ryan Bowring
downloaded latest curl version and trying to execute test program for RTSP but everytime I gte a version error. It says version is not latest and thats why curl_easy_perform() fails, but when I execute curl-config --version then I get libcurl 7.31.0. Regards

Re: Getting version error even though my version is latest for RTSP

2013-07-12 Thread Amit Pal
are you using? I know OS X ships with curl by default… check your system's PATH. You may have two versions of curl installed and for some reason curl_easy_perform() is using the older one. Ryan Hi All, I have downloaded latest curl version and trying to execute test program for RTSP

Getting version error even though my version is latest for RTSP

2013-07-11 Thread Amit Pal
Hi All, I have downloaded latest curl version and trying to execute test program for RTSP but everytime I gte a version error. It says version is not latest and thats why curl_easy_perform() fails, but when I execute curl-config --version then I get libcurl 7.31.0. Regards

Need some information about using curl for RTSP

2013-07-10 Thread Amit Pal
Hi All, I want to use RTSP for my work. I have following questions: 1) Can I use RTSP just for streaming not for session management. I mean we have different way of establishing the session, and I just want to use commands like play, pause etc. Is it mandatory to associate these commands

Question about rtsp play ,pause and seek support in libcurl 7.28.1

2012-12-22 Thread 黎小辉
Hi all, I want to use libcurl 7.28.1 to support rtsp stream playing in my media player(OS is linux), I am a new in rtsp , Whether libcurl 7.28.1 can support rtsp play, pause and seek for a media player? Thanks in advance.--- List

Re: How to use RTSP with cURL command line?

2012-09-19 Thread Lijo Antony
On 09/19/2012 07:07 PM, Ryan H wrote: I have recently installed cURL on my Linux machine and I am wondering how I make RTSP requests with cURL through the command line (SSH). Doing: curl rtsp://urlhere seems to do nothing. It gives no error, but also no acknowledgement of anything having

Re: RTSP Command not completing even though data has been received - additional stuff not fine transfer.c:1037 0 0

2012-04-16 Thread jeremy
On Mon, Apr 16, 2012, at 07:11, Tinus van den Berg wrote: On 2012/04/15 02:42 PM, Daniel Stenberg wrote: On Thu, 12 Apr 2012, Tinus van den Berg wrote: Does anyone know what we could do differently ? I've not even looked at this yet so I don't know. But I'm not an RTSP expert

Re: RTSP Command not completing even though data has been received - additional stuff not fine transfer.c:1037 0 0

2012-04-16 Thread Daniel Stenberg
On Mon, 16 Apr 2012, Tinus van den Berg wrote: Due to the fact that curl did not have RTSP authentication support at the time we started using it, we implemented our own authentication portion and set the authentication header with curl_slist_append. It still does not change the fact

Re: RTSP Command not completing even though data has been received - additional stuff not fine transfer.c:1037 0 0

2012-04-16 Thread Tinus van den Berg
don't know. But I'm not an RTSP expert. Would it help if I provided you with access to this camera ? Would REALLY like you to have a look ... --- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http

Re: RTSP Command not completing even though data has been received - additional stuff not fine transfer.c:1037 0 0

2012-04-15 Thread Daniel Stenberg
On Thu, 12 Apr 2012, Tinus van den Berg wrote: Does anyone know what we could do differently ? I've not even looked at this yet so I don't know. But I'm not an RTSP expert. -- / daniel.haxx.se --- List admin: http

Re: RTSP Command not completing even though data has been received - additional stuff not fine transfer.c:1037 0 0

2012-04-15 Thread Tinus van den Berg
On 2012/04/15 02:42 PM, Daniel Stenberg wrote: On Thu, 12 Apr 2012, Tinus van den Berg wrote: Does anyone know what we could do differently ? I've not even looked at this yet so I don't know. But I'm not an RTSP expert. Would it help if I provided you with access to this camera ? Would

Re: RTSP Command not completing even though data has been received - additional stuff not fine transfer.c:1037 0 0

2012-04-12 Thread Tinus van den Berg
Hi, Does anyone know what we could do differently ? Regards Tinus On 2012/04/04 04:02 PM, Tinus van den Berg wrote: Hi, We have been using the Curl library for our RTSP sessions for quite some time now. We have however run into some issues recently with an IP camera from Panogenics. When

RTSP Command not completing even though data has been received - additional stuff not fine transfer.c:1037 0 0

2012-04-04 Thread Tinus van den Berg
Hi, We have been using the Curl library for our RTSP sessions for quite some time now. We have however run into some issues recently with an IP camera from Panogenics. When we do a DESCRIBE request, we get the callbacks for the header data, and it seems like the transaction is complete

Query regarding RTSP authentication

2011-12-30 Thread jeremy
Hi, I've recently started playing around with libcurl, I'm using libcurl 7.23.1 for RTSP comms to an old password protected Axis camera. The problem is libcurl times out after it receives a 401 response from the RTSP describe request. After scouring the examples and archives for inspiration I

Re: Query regarding RTSP authentication

2011-12-30 Thread Daniel Stenberg
On Fri, 30 Dec 2011, jer...@fastmail.co.uk wrote: After scouring the examples and archives for inspiration I came across a mail titled '[PATCH] RTSP-Authentication' (http://curl.haxx.se/mail/lib-2011-06/0004.html). I promptly applied the patch from the mailing list and libcurl started

Re: Query regarding RTSP authentication

2011-12-30 Thread jeremy
On Fri, Dec 30, 2011, at 16:31, Daniel Stenberg wrote: On Fri, 30 Dec 2011, jer...@fastmail.co.uk wrote: After scouring the examples and archives for inspiration I came across a mail titled '[PATCH] RTSP-Authentication' (http://curl.haxx.se/mail/lib-2011-06/0004.html). I promptly

  1   2   >