<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">My filter chain look like:<br><br>H264VideoRTPSource -> MyFilter -> H264VideoRTPSink.<br><br>The reason I use a Filter betweens H264VideoRTPSource and <br>H264VideoRTPSink is, I want save the file and send to multiple remote <br>player(unicast) simultaneously.<br><br>But it seems the H264VideoRTPSink can only work with H264VideoStreamFramer directly in the current source . <br></div></blockquote><div><br></div>That's correct.  The object that feeds into a "H264VideoRTPSink" *must* be a "H264VideoStreamFramer" (or a subclass of this).</div><div><br></div><div>One simple way to do what you want is to structure your filter chain as follows:</div><div><br></div><div>H264VideoRTPSource -> MyFilter -> H264VideoStreamFramer -> H264VideoRTPSink</div><div><br></div><div>Where "MyFilter" is a new filter class - that you would write - that simply copies its input frames to its output, but also writes to your output file.</div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>