<HTML><BODY>
Hi All,<br><br>I had a compatibility issue with rtmpdump 2.3 and fms 3.5/4.0, because of<br>metadata being inserted in the stream via NetStream::send("@setDataFrame", ...,<br>see <a href="http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html"></a><a href="http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html"><a href="http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html">http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html</a></a>.<br><br>As I figured out using wireshark the problem was the absence of "objectEncoding"<br>property in "connect" invocation. Without given property FMS silently closes the socket<br>during initial client-server conversation.<br><br>Here is the small patch, if anybody is interested:<br><br><br>Index: librtmp/rtmp.c<br>===================================================================<br>--- librtmp/rtmp.c (revision 551)<br>+++ librtmp/rtmp.c (w
orking copy)<br>@@ -258,6 +258,13 @@<br> r->m_fVideoCodecs = 252.0;<br> r->Link.timeout = 30;<br> r->Link.swfAge = 30;<br>+<br>+ /* Auriga - Ivanenko. We have to set the encoding("objectEncoding" in connect invocation) to make <br>+ rtmpdump fully compatible with FMS 3.5/4.0, see<br>+ <a href="http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html"></a><a href="http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html"></a><a href="http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html"></a><a href="http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html"><a href="http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html">http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-February/001302.html</a></a> */<br>+ r->m_fEncoding = 3.0;<br>+ r->m_bSendEncoding = TRUE;<br>+<br> }<br> <br
> void<br><br></BODY></HTML>