[FFmpeg-devel] Additional RTSP issues

Stas Oskin stas.oskin
Tue Aug 25 19:21:49 CEST 2009


Well yes this whole options-via-URI is stupid-as-hell. We shouldn't
> touch the URI, period. Maybe add an char **options or so as an extra
> argument?

I found another issue related to TCP.

rtsp.c doesn't specify "unicast;" on non-WMS rtsp servers in TCP mode, which
several common RTSP servers don't like.

Attached a patch that handles this.

-------------- next part --------------
--- libavformat/rtsp.c	(revision 16631)
+++ libavformat/rtsp.c	(working copy)
@@ -1038,8 +1038,7 @@
             snprintf(transport, sizeof(transport) - 1,
                      "%s/TCP;", trans_pref);
-            if (rt->server_type == RTSP_SERVER_WMS)
-                av_strlcat(transport, "unicast;", sizeof(transport));
+            av_strlcat(transport, "unicast;", sizeof(transport));
             av_strlcatf(transport, sizeof(transport),
                         interleave, interleave + 1);

More information about the ffmpeg-devel mailing list