[rtmpdump] issue with rtmpdump 2.3 and fms 3.5/4.0 : patch

Howard Chu hyc at highlandsun.com
Thu Mar 17 16:47:09 CET 2011


Alexander Ivanenko wrote:
> Hi All,
>
> I had a compatibility issue with rtmpdump 2.3 and fms 3.5/4.0, because of
> metadata being inserted in the stream via NetStream::send("@setDataFrame", ...,
> see
> <http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html><http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html>http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html.
>
> As I figured out using wireshark the problem was the absence of "objectEncoding"
> property in "connect" invocation. Without given property FMS silently closes
> the socket
> during initial client-server conversation.

This cannot possibly be correct, since rtmpdump doesn't know how to generate 
AMF3 encoded request packets.

> Here is the small patch, if anybody is interested:
>
>
> Index: librtmp/rtmp.c
> ===================================================================
> --- librtmp/rtmp.c (revision 551)
> +++ librtmp/rtmp.c (w orking copy)
> @@ -258,6 +258,13 @@
> r->m_fVideoCodecs = 252.0;
> r->Link.timeout = 30;
> r->Link.swfAge = 30;
> +
> + /* Auriga - Ivanenko. We have to set the encoding("objectEncoding" in
> connect invocation) to make
> + rtmpdump fully compatible with FMS 3.5/4.0, see
> +
> <http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html><http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html><http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html><http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html>http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html
> */
> + r->m_fEncoding = 3.0;
> + r->m_bSendEncoding = TRUE;
> +
> }
>


More information about the rtmpdump mailing list