<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite">We are developping an application using an Mpeg 2 TS (H264/AAC) streaming. And we are wondering about the meaning of the boolean parameters of the SimpleRTPSink constructor, and the SimpleRTPsource constructor. We are having some problems synchronizing audio and video, and demuxing the output stream (the demuxer just block out after a random time).<br>
<br>SimpleRTPSource::createNew(*env, &(*rtpGroupSock), 33, 90000, "video/MP2T", 0, false);<br><br>SimpleRTPSink::createNew(*env, &(*rtpGroupSock), 33, 90000, "video", "mp2t", 1, true, false/*no 'M' bit*/);<br>
<br>We are wondering if changing those parameter could improve our situation, or if those default shouldn't be changed.<br></blockquote><div><br></div></div>No, for receiving/sending MPEG Transport Stream data over RTP, those parameters are correct, and should not be changed.<div><br></div><div>However, because your data is Transport Stream data (in which audio and video are multiplexed together into a single stream), your audio/video synchronization problem has absolutely nothing to do with our streaming code. You can verify this by taking your input Transport Stream (i.e. directly from your encoder), saving it to a file, and playing this file using a media player such as VLC.</div><div><br></div><div>Any audio/video synchronization problems within a Transport Stream are caused by the *encoding* of the Transport Stream, not by the way in which it is streamed.</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>