A flawless capture, a black screen

Every RTP sequence number lines up. Timestamps march forward. The payload bytes leaving the sender and landing at the receiver are identical twins. And the viewer is still staring at a black rectangle, or a smear of green blocks, or a picture that freezes the instant anything moves.

This is where an engineer learns the least popular lesson in video networking: a packet capture is a wonderful witness and a terrible detective. It can prove what arrived. It cannot prove what the arrival meant.

Twenty years ago, RFC 3984 made that gap structural. Published in February 2005, it defined how H.264 video would ride on RTP — and in doing so it split a video stream into two things that travel on different clocks: the pictures, and the rulebook that tells a decoder how to read them. The pictures are the payload. The rulebook is the sequence and picture parameter sets. And the rulebook has never been obliged to arrive alongside the pictures it explains.

That is the whole story in one sentence, and it is why a trace can be perfect while the screen stays dark.

Pictures that point at rules instead of carrying them

H.264 made a bet that repetition is waste. Rather than restating the same facts in every slice, it moved shared information into parameter sets. A sequence parameter set describes properties of a coded video sequence. A picture parameter set supplies properties used for coded pictures. Between them sit picture dimensions, coding modes, slice-group mapping — the furniture of the whole session.

A slice header then carries only small identifiers selecting the relevant sets. Elegant, compact, and quietly dangerous: the identifier is a reference, not the referenced rules. The slice says use rulebook seven. It does not say what rulebook seven contains, and it has no way of knowing whether rulebook seven still means what it meant when the slice was encoded.

So the decoder keeps a timeline of its own. Before a dependent NAL unit reaches decoding order, the required parameter sets must already be sitting in the expected slots. A packet can be perfectly on time by RTP's reckoning and far too early by the decoder's. A packet can be byte-intact while the identifier it names has quietly acquired a new meaning. Transport correctness and interpretive readiness are two different claims, and only one of them shows up in your graphing tool.

Where the boundary actually sits

The split is visible in RFC 3550. RTP sequence numbers support loss detection and packet reordering; timestamps represent sampling instants and drive playback timing and synchronization. The status page, errata page and Datatracker record are equally clear on what those fields are not: neither one is a version number for decoder configuration. RTP will tell an observer a great deal about delivery and absolutely nothing about which SPS or PPS currently occupies a receiver's slot.

Three ways to move a rulebook, three ways to lose it

RFC 3984 organized parameter-set carriage around three principles. Under Principle A, sets travel reliably out of band before the RTP session begins. Under Principle B, updated sets travel reliably out of band while the session runs. Under Principle C, sets travel in band with the media itself.

The original document leaned toward reliable out-of-band delivery for the first two cases, and it was blunt about why in-band carriage needed help — repetition, retransmission, forward error correction. Lose one parameter set in band and you have not lost one packet's worth of picture. You have damaged the interpretation of everything downstream that trusted it.

For initial state, the media-type parameter sprop-parameter-sets could carry base64 representations of parameter-set NAL units, and those sets had to precede the NAL units referring to them in decoding order. Here is the trap that still catches implementers: the attribute is not a capability declaration. It describes the state the stream expects to use. It does not enumerate every configuration the receiver could accept. Read it as a capability list and you will happily negotiate a stream on evidence the receiver never offered.

Out-of-band carriage also dragged the media problem into session signaling. RFC 4566 defines SDP as a description format, with its status, errata and Datatracker record preserving the history. RFC 3264 defines offer/answer and permits only one outstanding offer at a time; see its status, errata and Datatracker record. Serialization coordinates a change. It does not turn SDP into a delivery receipt for decoder installation.

RFC 3984's practical advice was stricter still: when updated sets travelled reliably out of band, the sender should wait for acknowledgment of the signaling before sending NAL units that depended on them. That creates a clean boundary before media cutover. It also proves only what the signaling system claims to prove. Somewhere in the production design, someone still has to define when receipt becomes installation, and when installation becomes active decoder state. Those three moments are not the same moment, and the gap between them is where incidents live.

The identifier reuse race: same name, new meaning

Now the genuinely nasty part. Suppose a picture parameter set with one identifier defines the old picture configuration. The sender overwrites that identifier with a new definition while old dependent NAL units are still in the network or sitting in the receiver's buffers. Those older slices carry the same small reference. The decoder now resolves it to a different rule set.

No checksum fails. No sequence number skips. The corruption is semantic, which is the worst kind, because every monitoring dashboard stays green while the picture rots.

The specification therefore recommended picking an identifier unused for a sufficiently long period, or minting a fresh one instead of overwriting an active one. Note that the safe interval is not a network round trip. It is the round trip plus packets in flight plus reordering plus jitter buffers plus however long the decoder retains what it was told. In a multiparty session the ownership problem compounds: two perfectly well-behaved sources can independently choose the same identifier unless a common controller partitions or rewrites the namespace.

Mixing channels breeds ghosts

RFC 3984 warned that Principles B and C should not be combined in one session without sufficient synchronization. The failure modes are politely described and thoroughly unpleasant in practice. A late joiner starts from the out-of-band set and misses an in-band update. A receiver that drops the update keeps decoding against the old version while subsequent picture packets arrive in pristine condition. Two paths, two meanings, one slot.

Partitioning identifiers between channels is one defense, and it works for the same reason seatbelts work: it prevents two systems from silently disagreeing about what a name refers to.

RFC 6184 changed the plumbing, not the problem

The successor standard moved the preferred mechanism without dissolving the underlying control problem. RFC 6184, with its status, errata and Datatracker history, permits both in-band and out-of-band parameter-set transport and adds negotiation such as in-band-parameter-sets. The 2005 preference for out-of-band delivery should not be projected forward as present doctrine. What survived, untouched, was the obligation to declare the method and coordinate configuration with the media that depends on it.

RFC 7798 later took on HEVC over RTP, with its own status, errata and Datatracker record. It is useful comparative evidence that compressed-video payload formats keep colliding with the same shape of problem: state whose effect spans many media units. It is not evidence that every implementation behaved alike, or that the earlier format was deployed everywhere.

The security asymmetry follows directly. Corrupt one ordinary picture packet and you damage a bounded region of one frame. Corrupt or inject a parameter set and you change how a great many future NAL units get interpreted. RFC 3984 accordingly discusses integrity protection and source authentication. Blast radius belongs to state, not to packet size.

What to preserve when the screen goes black

For incident response, a "complete packet capture" is a lie unless it includes the configuration story. Preserve the SDP exchanges, the acknowledgments, the in-band parameter-set NAL units, the identifier assignments, the payload-type transitions, and the receiver's buffer horizon. Then ask the three questions that actually decide the case: when did each SPS and PPS version become active, who owned the identifier at that moment, and had the older dependants drained before the meaning changed?

The decisive evidence may never appear in the picture packets themselves. It rarely does.

The lesson outlives the codec

RFC 3984's enduring contribution is a systems lesson wearing a video codec as a costume. Content and the rules for interpreting content can travel through different channels, under different reliability assumptions, on different clocks — and a reference inside a packet does not collapse those clocks into one. Reliable operation begins the moment a system treats configuration readiness as its own state machine, with its own provenance and its own cutover evidence, rather than as an optimistic side effect of media arriving on time.

The picture packets were never the whole story. They were only the part that fit in the capture.

Sources