[Speex-dev] RFC 5574 and multiple frames

Jean-Marc Valin Jean-Marc.Valin at USherbrooke.ca
Mon Nov 23 09:57:54 PST 2009


Hi,

The Speex bit-packer already does everything you need. Just call speex_encode()
multiple times to encode multiple frames and call speex_decode() multiple times
to decode these frames.

   Jean-Marc


Quoting Marian Kechlibar <marian.kechlibar at circletech.net>:

> Hello all,
>
> I am experimenting with Speex in a mobile VoIP application, and it seems
> that it is worth stuffing more than one codec frame into a single RTP
> packet; mainly, that sending several frames per packet relieves the
> underlying network socket connection, which is notoriously problematic
> in mobile devices.
>
> RFC 5574 defines the exact way how to put multiple Speex frames into a
> single RTP packet, and how to extract them again. However, the frame
> boundaries are not on octet boundaries, and I am quite confused on how
> to actually format the RTP payload from multiple frames.
>
> Does the current code of speex contain an utility which would package
> multiple Speex frames into a block according to RFC 5574, and extract
> them again? Or do I have to write this packing/unpacking code myself? I
> tried some searching, but no I found no reference implementation of the
> formatting...
>
> BR,
>
> Marian Kechlibar
>
>
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
>
>





More information about the Speex-dev mailing list