[Live-devel] MultiFramedRTPSink::specialHeaderSize()
Ross Finlayson
finlayson at live555.com
Tue Apr 18 18:48:09 PDT 2006
At 04:43 PM 4/7/2006, you wrote:
>I'm sure I didn't do this the best way, but I created a new class
>H264VideoStreamFUAFramer (derived from FramedFilter) that takes NAL Units as
>input and outputs fragmented (FU-A) NAL Unit types.
FYI, I've come to the conclusion that - right now, at least - this is
probably the most reasonable way to implement a "H264VideoRTPSink",
because of the problem of variable-sized 'special headers' in the RTP
payload format for H.264.
I.e., sitting in front of the "MultiFramedRTPSink" subclass, there
would be a separate "FramedFilter" subclass that takes complete NAL
units as input, and outputs appropriately fragmented NAL units
(including all required header bytes).
Unfortunately this is a bit of a hack, because it requires knowledge
of the preferred output packet size, and because it would end up
doing an extra memory copy of each NAL unit. But it seems like the
simplest solution, for now at least.
Ross Finlayson
Live Networks, Inc. (LIVE555.COM)
<http://www.live555.com/>
More information about the live-devel
mailing list