<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div><div style="background-color: rgb(255, 255, 255); font-family: arial, helvetica, sans-serif; font-size: 10pt; position: static; z-index: auto; "><div style="font-family: 'lucida console', sans-serif; font-style: normal;"><span style="background-color: rgb(255, 255, 255);"><span class="Apple-tab-span" style="font-size: 13px; white-space: pre;">  </span><span>I am trying to send out the speex encoded audio data via RTP. I read the mail you sent long time ago. Since speex over RTP requires no extra headers, so, I used SimpleRTPSink as the sink class.</span></span></div><div style="font-family: 'lucida console', sans-serif; font-style: normal;"><span style="background-color: rgb(255, 255, 255);"><span class="Apple-tab-span" style="white-space:pre"> </span>However the player (I am using
 ffmpeg/ffplay) can not play the video properly. It complains about multiple frames in the RTP packet. I googled around and I found that the speex over RTP (RFC5574) reqiures that the single speex frame, which is 38 octets long when using 8k sample rate and default quality, can not be broken into 2 RTP packets. So, I wonder if there is any method in SimpleRTPSink to control the single frame kept in the same RTP packet?</span></div></div></div></blockquote><div><br></div>Yes.  Note the (optional) parameter "allowMultipleFramesPerPacket" to "SimpleRTPSink::createNew()".  By default, it's True, but if you instead set it to False, you'll get only one frame in each outgoing RTP packet.</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>