[FFmpeg-devel] [PATCH] Add RTP hinting to the mov muxer

Martin Storsjö martin
Tue Apr 20 16:17:26 CEST 2010


Hi,

As discussed, here's the first attempt at adding RTP hinting in the mov 
muxer.

Luca A, this splits out sdp_write_media as a lavf-internal function, since 
the hinted streams need the the media-specific parts of the SDP. I added 
doxygen docs for the function at the same time. Is this acceptable?

Also, for writing RTP hints that reuse the normal packets data, one could 
modify all the RTP muxers so that they could output metadata about what 
they've actually done (which would require a lot of changes to all RTP 
muxers). Since this clearly isn't desireable, I've left them unmodified 
and simply store the data that has been used as input to the RTP muxer, 
and look for matches between the input and output with a simple heuristic. 
It uses only a little extra memory (for video packetizers, it buffers the 
previous encoded frame, for audio packetizers, it buffers all frames used 
in the RTP packet) and the heuristic should be really quick.

This adds a flag AVFMT_FLAG_RTP_HINT that enables this part of the mov 
muxer, so people not interested in it aren't affected at all.

// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-ff_sdp_write_media-a-lavf-internal-function.patch
Type: text/x-diff
Size: 2953 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100420/c2decd87/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Move-the-mov-muxer-structures-to-a-separate-header.patch
Type: text/x-diff
Size: 5428 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100420/c2decd87/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-MOVTrack-members-needed-for-hinting.patch
Type: text/x-diff
Size: 1671 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100420/c2decd87/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Write-RTP-hint-track-atoms.patch
Type: text/x-diff
Size: 6037 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100420/c2decd87/attachment-0003.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Add-initial-support-for-RTP-hinting-in-the-mov-muxer.patch
Type: text/x-diff
Size: 12067 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100420/c2decd87/attachment-0004.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Add-a-flag-for-enabling-RTP-hinting.patch
Type: text/x-diff
Size: 2141 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100420/c2decd87/attachment-0005.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Add-RTP-hint-tracks-if-the-hinting-flag-is-set.patch
Type: text/x-diff
Size: 1389 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100420/c2decd87/attachment-0006.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Use-a-heuristic-for-describing-the-RTP-packets-using.patch
Type: text/x-diff
Size: 8135 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100420/c2decd87/attachment-0007.patch>



More information about the ffmpeg-devel mailing list