SDP - H.264 packetization-mode

packetization-mode defines the packetization rule for the incoming stream connection.

With respect to H.264, RFC 3984 defines packetization-mode as

packetization-mode=0 or does not exist imply the incoming RTP packets are packetized in Single NAL mode
packetization-mode=1 imply the incoming RTP packets are packetized in non-interleaved mode
packetization-mode=2 imply the incoming RTP packets are packetized ininterleaved mode

See RFC 3984 section 6 for full details. Also read Section 8.1 MIME registration.

Comments

  1. Do you know, how to send .h264 files via RTP?

    ReplyDelete
  2. First, you need to get H.264 frames from your source (File/network/stream/etc...). I am referring each frame as NAL unit. Then, you can use the following RFC to packetize each NAL unit.

    See RFC3984 http://www.ietf.org/rfc/rfc3984.txt

    Especially

    5.6. Single NAL Unit Packet.................................. 18

    Use this if your NAL can be sent within a single RTP packet

    5.7. Aggregation Packets..................................... 18

    You can consider this to send SPS and PPS


    5.8. Fragmentation Units (FUs)............................... 27

    You can use this to send a NAL over multiple RTP packets

    ReplyDelete

Post a Comment

Popular Posts