[Live-devel] The Speex over RTP
Ross Finlayson
finlayson at live555.com
Tue Aug 20 01:59:58 PDT 2013
> 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.
> 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?
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.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130820/271a648a/attachment.html>
More information about the live-devel
mailing list