MistServer
2.5.3-Pro-19-gf5e75b1 ( Generic_64)
|
Holds all TS processing related code. More...
Data Structures | |
class | Packet |
Class for reading and writing TS Streams. More... | |
class | ProgramAssociationTable |
class | ProgramMappingEntry |
class | ProgramMappingTable |
class | Stream |
Enumerations | |
enum | codecType { H264 = 0x1B, AAC = 0x0F, AC3 = 0x81, MP3 = 0x03, HEVC = 0x06, H265 = 0x24, ID3 = 0x15, H264 = 0x1B, AAC = 0x0F, AC3 = 0x81, MP3 = 0x03, HEVC = 0x06, H265 = 0x24, ID3 = 0x15 } |
enum | codecType { H264 = 0x1B, AAC = 0x0F, AC3 = 0x81, MP3 = 0x03, HEVC = 0x06, H265 = 0x24, ID3 = 0x15, H264 = 0x1B, AAC = 0x0F, AC3 = 0x81, MP3 = 0x03, HEVC = 0x06, H265 = 0x24, ID3 = 0x15 } |
Functions | |
const char * | createPMT (std::set< unsigned long > &selectedTracks, DTSC::Meta &myMeta, int contCounter) |
Construct a PMT (special 188B ts packet) from a set of selected tracks and metadata. More... | |
unsigned long long | decodePTS (const char *data) |
void | encodePESTimestamp (std::string &tmpBuf, char fixedLead, unsigned long long time) |
Appends the PES-encoded timestamp to a string. More... | |
static std::string | getAudioHeader (int FrameLen, std::string initData) |
Constructs an audio header to be used on each audio frame. More... | |
static std::string | getAudioHeader (int FrameLen, std::string initData) |
Constructs an audio header to be used on each audio frame. More... | |
Variables | |
static char | PAT [188] |
A standard Program Association Table, as generated by FFMPEG. More... | |
static char | PAT [188] |
A standard Program Association Table, as generated by FFMPEG. More... | |
Holds all TS processing related code.
enum TS::codecType |
enum TS::codecType |
const char * TS::createPMT | ( | std::set< unsigned long > & | selectedTracks, |
DTSC::Meta & | myMeta, | ||
int | contCounter | ||
) |
Construct a PMT (special 188B ts packet) from a set of selected tracks and metadata.
This function is not part of the packet class, but it is in the TS namespace. It uses an internal static TS packet for PMT storage.
selectedTracks | tracks to include in PMT creation |
myMeta |
unsigned long long TS::decodePTS | ( | const char * | data | ) |
void TS::encodePESTimestamp | ( | std::string & | tmpBuf, |
char | fixedLead, | ||
unsigned long long | time | ||
) |
Appends the PES-encoded timestamp to a string.
strBuf | The string to append to |
fixedLead | The "fixed" 4-bit lead value to use |
time | The timestamp to encode |
|
inlinestatic |
Constructs an audio header to be used on each audio frame.
The length of this header will ALWAYS be 7 bytes, and has to be prepended on each audio frame.
FrameLen | the length of the current audio frame. |
initData | A string containing the initalization data for this track's codec. |
|
inlinestatic |
Constructs an audio header to be used on each audio frame.
The length of this header will ALWAYS be 7 bytes, and has to be prepended on each audio frame.
FrameLen | the length of the current audio frame. |
initData | A string containing the initalization data for this track's codec. |
|
static |
A standard Program Association Table, as generated by FFMPEG.
Seems to be independent of the stream.
|
static |
A standard Program Association Table, as generated by FFMPEG.
Seems to be independent of the stream.