[FFmpeg-devel] [PATCH] Maximum number of frames in an RTP packet

Luca Abeni lucabe72
Tue Sep 25 14:07:27 CEST 2007


Hi all,

when encapsulating audio or video frames in an RTP packet, some RFCs
allow to aggregate multiple frames in a single packet (this often happens
for audio). FFMPEG's RTP packetizer currently does this for AAC or MPEG
audio.

The attached patch introduces a new field (max_frames_per_packet) in
the RTPDemuxContext structure, and sets it based on the AVFormatContext
"max_delay" field (the muxing delay obviously depends on the number of
frames per packet). This new field is then used in the ACC packetizer
(if the patch is accepted, I can write similar code for the MPEG audio
packetizer).

In this way, the patch addresses a comment by Luca Barbato about the
maximum number of AAC frames per RTP packet.

Comments?


			Thanks,
				Luca
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: rtp-audio-delay.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070925/6e80c2e5/attachment.txt>



More information about the ffmpeg-devel mailing list