livekit / ingress

Ingest streams (RTMP/WHIP) or files (HLS, MP4) to LiveKit WebRTC
Apache License 2.0
74 stars 26 forks source link

h.264 multi nalus frame support #12

Closed cnderrauber closed 2 years ago

cnderrauber commented 2 years ago

pion's h264 packetizer processed the start code to extract nalu, and use STAP-A to aggregate SPS&PPS. for multi nalus belong to a single frame, they will be packed to multi rtp packets with same timestamp (Single NAL Unit Mode). so it should support multi nalus for single frame, split nalu to sample will break it.