<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-size: 10pt;"><span style="background-color: rgb(255, 255, 255);">Hi,</span></div><div style="font-size: 10pt;"><span style="background-color: rgb(255, 255, 255);"><br></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="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? Or I just need to write a new classed derived from MultiFramedRTPSink and rewrite the method <span style="font-family: Geneva, Arial, Helvetica, sans-serif; white-space: nowrap;">afterGettingFrame1()?</span></span></div><div style="font-family: Geneva, Arial, Helvetica, sans-serif; font-style: normal;"><span style="font-family: Geneva, Arial, Helvetica, sans-serif; white-space: nowrap; background-color: rgb(255, 255, 255);"><br></span></div><div style="font-family: Geneva, Arial, Helvetica, sans-serif; font-style: normal;"><span
style="font-family: Geneva, Arial, Helvetica, sans-serif; white-space: nowrap; background-color: rgb(255, 255, 255);">Regards,</span></div><div style="font-family: Geneva, Arial, Helvetica, sans-serif; font-style: normal;"><span style="font-family: Geneva, Arial, Helvetica, sans-serif; white-space: nowrap; background-color: rgb(255, 255, 255);">Lan Zang(Sander)</span></div></div></body></html>