MP4v2 Streaming
MP4v2 Streaming

Macros

#define MP4_SET_DYNAMIC_PAYLOAD   0xff
 

Functions

bool MP4GetHintTrackRtpPayload (MP4FileHandle hFile, MP4TrackId hintTrackId, char **ppPayloadName=NULL, uint8_t *pPayloadNumber=NULL, uint16_t *pMaxPayloadSize=NULL, char **ppEncodingParams=NULL)
 
bool MP4SetHintTrackRtpPayload (MP4FileHandle hFile, MP4TrackId hintTrackId, const char *pPayloadName, uint8_t *pPayloadNumber, uint16_t maxPayloadSize=0, const char *encode_params=NULL, bool include_rtp_map=true, bool include_mpeg4_esid=true)
 
const char * MP4GetSessionSdp (MP4FileHandle hFile)
 
bool MP4SetSessionSdp (MP4FileHandle hFile, const char *sdpString)
 
bool MP4AppendSessionSdp (MP4FileHandle hFile, const char *sdpString)
 
const char * MP4GetHintTrackSdp (MP4FileHandle hFile, MP4TrackId hintTrackId)
 
bool MP4SetHintTrackSdp (MP4FileHandle hFile, MP4TrackId hintTrackId, const char *sdpString)
 
bool MP4AppendHintTrackSdp (MP4FileHandle hFile, MP4TrackId hintTrackId, const char *sdpString)
 
MP4TrackId MP4GetHintTrackReferenceTrackId (MP4FileHandle hFile, MP4TrackId hintTrackId)
 
bool MP4ReadRtpHint (MP4FileHandle hFile, MP4TrackId hintTrackId, MP4SampleId hintSampleId, uint16_t *pNumPackets=NULL)
 
uint16_t MP4GetRtpHintNumberOfPackets (MP4FileHandle hFile, MP4TrackId hintTrackId)
 
int8_t MP4GetRtpPacketBFrame (MP4FileHandle hFile, MP4TrackId hintTrackId, uint16_t packetIndex)
 
int32_t MP4GetRtpPacketTransmitOffset (MP4FileHandle hFile, MP4TrackId hintTrackId, uint16_t packetIndex)
 
bool MP4ReadRtpPacket (MP4FileHandle hFile, MP4TrackId hintTrackId, uint16_t packetIndex, uint8_t **ppBytes, uint32_t *pNumBytes, uint32_t ssrc=0, bool includeHeader=true, bool includePayload=true)
 
MP4Timestamp MP4GetRtpTimestampStart (MP4FileHandle hFile, MP4TrackId hintTrackId)
 
bool MP4SetRtpTimestampStart (MP4FileHandle hFile, MP4TrackId hintTrackId, MP4Timestamp rtpStart)
 
bool MP4AddRtpHint (MP4FileHandle hFile, MP4TrackId hintTrackId)
 
bool MP4AddRtpVideoHint (MP4FileHandle hFile, MP4TrackId hintTrackId, bool isBframe=false, uint32_t timestampOffset=0)
 
bool MP4AddRtpPacket (MP4FileHandle hFile, MP4TrackId hintTrackId, bool setMbit=false, int32_t transmitOffset=0)
 
bool MP4AddRtpImmediateData (MP4FileHandle hFile, MP4TrackId hintTrackId, const uint8_t *pBytes, uint32_t numBytes)
 
bool MP4AddRtpSampleData (MP4FileHandle hFile, MP4TrackId hintTrackId, MP4SampleId sampleId, uint32_t dataOffset, uint32_t dataLength)
 
bool MP4AddRtpESConfigurationPacket (MP4FileHandle hFile, MP4TrackId hintTrackId)
 
bool MP4WriteRtpHint (MP4FileHandle hFile, MP4TrackId hintTrackId, MP4Duration duration, bool isSyncSample=true)
 

Detailed Description