[FFmpeg-soc] [PATCH] xiph packetizer

Josh Allmann joshua.allmann at gmail.com
Wed Jul 21 13:35:16 CEST 2010


Hi guys,

Here is a first attempt at a RTP packetizer for the Xiph codecs.
This is still a work in progress; Vorbis likes to crash when rescaling
the timebase, and the Theora output only vaguely resembles what it
should. (There are some unrelated changes in there, particularly to
the depacketizer. I will separate those later.)

The only major architectural issue here is that the configuration
identifier (here hard-coded to 0xfedcba) needs to be carried across
from the SDP to the packetizer proper. Right now I don't believe there
is a clean way to do that without adding another field to
RTPMuxContext, a generic priv_data or something. The "best" way, IMO,
would be to structure RTP packetization in a way similar to how
depacketization is done -- through dynamic handlers.

We might be able to get away with a hard-coded configuration
identifier, but I don't know yet if my samples will periodically emit
in-band extradata. (The RFC provisions for this.) In that case, the
config ID needs to be refreshed, and kept across subsequent packets.

Josh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xiph-packetizer.diff
Type: text/x-patch
Size: 8756 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20100721/cc492e33/attachment.bin>


More information about the FFmpeg-soc mailing list