[FFmpeg-devel] Additional RTSP issues

Stas Oskin stas.oskin
Tue Aug 25 00:50:12 CEST 2009


Hi.


> Yes, I test it all the time.
>
>
Actually it seems I used an outdated version of ffmpeg.

Inspecting this code, it seems the connection mode is set via the URL:

01177     option_list = strchr(path, '?');
01178     if (option_list) {
01179         /* remove the options from the path */
01180         *option_list++ = 0;
01181         while(option_list) {
01182             /* move the option pointer */
01183             option = option_list;
01184             option_list = strchr(option_list, '&');
01185             if (option_list)
01186                 *(option_list++) = 0;
01187             /* handle the options */
01188             if (strcmp(option, "udp") == 0)
01189                 lower_transport_mask = (1<<
RTSP_LOWER_TRANSPORT_UDP
<http://cekirdek.pardus.org.tr/%7Eismail/ffmpeg-docs/rtsp_8h.html#7d32a74979e7e6f60215f11789b3e02eb31d84d023a1ff6f491af197a446bba7>);
01190             else if (strcmp(option, "multicast") == 0)
01191                 lower_transport_mask = (1<<
RTSP_LOWER_TRANSPORT_UDP_MULTICAST
<http://cekirdek.pardus.org.tr/%7Eismail/ffmpeg-docs/rtsp_8h.html#7d32a74979e7e6f60215f11789b3e02e89dd2ec02679eec3d7de20a8aa33f022>);
01192             else if (strcmp(option, "tcp") == 0)
01193                 lower_transport_mask = (1<<
RTSP_LOWER_TRANSPORT_TCP
<http://cekirdek.pardus.org.tr/%7Eismail/ffmpeg-docs/rtsp_8h.html#7d32a74979e7e6f60215f11789b3e02e365e39b94c7df02faa14d371d49a6a9b>);


Something like this:

rtsp://xxx.xxx.xxx.xxx:554/test.sdp?tcp

?

Regards.



More information about the ffmpeg-devel mailing list