Class H264Depacketiser
Class that receives H264 encoded video Network Access Layer (NALs) in RTP packets and builds complete H264 encoded access units that can then be decoded.
Inherited Members
Namespace: SipLib.Video
Assembly: SipLib.dll
Syntax
public class H264DepacketiserMethods
| Edit this page View SourceProcessRTPPayload(byte[], ushort, uint, int, out bool)
Processes a single RTP packet containing one or more H264 NALs and builds up a full H264 access unit frame.
Declaration
public MemoryStream? ProcessRTPPayload(byte[] rtpPayload, ushort seqNum, uint timestamp, int markbit, out bool isKeyFrame)Parameters
| Type | Name | Description | 
|---|---|---|
| byte[] | rtpPayload | The payload of the RTP packet | 
| ushort | seqNum | The SEQ field of the RTP packet | 
| uint | timestamp | The Timestamp field of the RTP packet | 
| int | markbit | The marker bit field of the RTP packet | 
| bool | isKeyFrame | Output. Set to true if the frame is a key frame. | 
Returns
| Type | Description | 
|---|---|
| MemoryStream | Returns a MemoryStream containing a complete H264 access unit frame when one is ready. Use the ToArray() method to get the byte array containing the complete frame. Returns null if a full frame is not ready yet. |