<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>El 28/10/2010, a las 16:09, Ross Finlayson escribió:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>OK, I have now installed a new version (2010.10.28) of the code that adds support for "Restart Marker Headers" in outgoing JPEG/RTP packets. &nbsp;(We already supported such headers in *incoming* JPEG/RTP packets.)<br><br>To use this, your "JPEGVideoSource" subclass must redefine the virtual function "restartInterval()" to return a non-zero value if "type()" returns a value in the range [64,127].<br><br>You should *not* need to subclass or modify the implementation of "JPEGVideoRTPSink".<br>-- <br><br>Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a><br>_______________________________________________<br>live-devel mailing list<br>live-devel@lists.live555.com<br>http://lists.live555.com/mailman/listinfo/live-devel<br></div></blockquote></div><br><div><br></div><div>Hi, finally I have this working.</div><div><br></div><div>Cristiano, I have used your code to get information from the image. I have also changed&nbsp;<span class="Apple-style-span" style="font-size: 10px; ">doSpecialFrameHandling because you don't have to send the DRI header for images that don't have this markers.</span></div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp;u_int8_t RestartMarkerHeader[4]; <span style="color: #4f8e73">// the special header</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp; u_int16_t restartInterval = source-&gt;restartInterval();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; min-height: 12px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp; <span style="color: #921a66"><b>if</b></span> (restartInterval &gt; 0 )</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp; {</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>RestartMarkerHeader[0] = restartInterval &gt;&gt; 8;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp; &nbsp; RestartMarkerHeader[1] = restartInterval;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp; &nbsp; RestartMarkerHeader[2] = 0xFF;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp; &nbsp; RestartMarkerHeader[3] = 0xFF;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; min-height: 12px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; color: rgb(79, 142, 115); "><span class="Apple-style-span" style="color: rgb(0, 0, 0); ">&nbsp;&nbsp; setSpecialHeaderBytes(RestartMarkerHeader, <span style="color: #921a66"><b>sizeof</b></span> RestartMarkerHeader, <span style="color: #921a66"><b>sizeof</b></span> mainJPEGHeader <span style="color: #4f9074">/* start position */</span>);</span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; ">&nbsp; }</div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Helvetica; "><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></span></div><div>Ross, thanks for the new release. I have tried it and is not working here. Maybe I'm doing something wrong, could you send one JPEG image working? If you want I can send two test images with and without restart markers for you to test.</div><div><br></div><div>Cheers.</div><div><br></div><div><div><span class="Apple-style-span" style="font-family: arial; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">--&nbsp;<br>Francisco Feijoo<br>Software Engineer<br>J2K Video Limited<br></span></font></span></div><div><span class="Apple-style-span" style="font-family: arial; "><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px; ">W: <a href="http://www.j2kvideo.com">www.j2kvideo.com</a></span></font></span></div></div></body></html>