Hi, No you can't. The UDP data has nothing to do with the curl connection! So you should open a socket for RTP and RTCP yourself, using the numbers that are the result of the SETUP, and handle the traffic. You can pass the sockets to the same curl_multi_wait() so a single loop can handle both the management and the payload. The RTSP connection will be idle except for a keepalive that you have to send occasionally.
Erik From: curl-library [mailto:curl-library-boun...@cool.haxx.se] On Behalf Of Srijith Vijayakumar Sent: woensdag 4 april 2018 06:19 To: curl-library@cool.haxx.se Subject: Read RTP data sent over UDP - non-interleaved mode HI, I am trying to use cURL libraries to read the H264 video data sent by an IP camera in RTP packets. In the setup stage I use the following to get the RTP video packets using UDP in non-interleaved mode . const char *transport = "RTP/AVP;unicast;client_port=1234-1235"; /* UDP */ I was able to verify that the IP camera is sending the RTP data but I could not find a curl callback or option that will enable me to read this data. Is there a way to get this RTP data using a callback like the CURLOPT_INTERLEAVEFUNCTION or the CURLOPT_WRITEFUNCTION? Using: const char *transport = "RTP/AVP/TCP;unicast;interleaved=0-1"; causes the IP camera to send RTP data packets using TCP in interleaved mode, which is not what I want. Please let me know if I can use the UDP non-interleaved mode and still read the packet using a callback Thanks, Srijith
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html