cURL / Mailing Lists / curl-users / Single Mail

curl-users

RTSP Interleaved data has extra 0x0D

From: Manisha Singh <Manisha.Singh_at_mathworks.com>
Date: Wed, 28 Jan 2015 14:25:09 +0000

Hi,

I am using curl to get RTSP data. I am connecting to IP Cameras that send JPEG over RTP packets. Comparing the RTSP packets that I get from curl with wireshark, I noticed that there are extra 0x0D before every 0x0A. I was able to decode the JPEF RTP packets successfully when I remove those extra 0x0Ds from the stream.

This is how I am getting interleaved data:

  curl_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, write_data_static);
  curl_setopt(curl, CURLOPT_INTERLEAVEDATA, this);
  curl_setopt(curl, CURLOPT_RTSP_REQUEST,(long)CURL_RTSPREQ_RECEIVE);
  CURLcode res = curl_easy_perform(curl);

Any ideas on what could be happening here?

Thanks,
Manisha

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-28