TSDuck  v3.33-3081
MPEG Transport Stream Toolkit
ts::duck Namespace Reference

Definitions of the TSDuck internal messaging protocol. More...

Classes

class  ClearECM
 Fake / demo clear ECM. More...
 
class  Error
 Error message. More...
 
struct  Errors
 All error status values. More...
 
class  LogSection
 Message to log a section. More...
 
class  LogTable
 Message to log a table. More...
 
class  Protocol
 Generic description of the TSDuck internal messaging protocol. More...
 
struct  Tags
 All TSDuck messaging tags (commands and parameters). More...
 
struct  Traits
 Generic "traits" for the TSDuck internal messaging protocol. More...
 

Variables

const tlv::VERSION CURRENT_VERSION = 0x80
 Current version of the TSDuck internal messaging protocol.
 

Detailed Description

Definitions of the TSDuck internal messaging protocol.

Note that none of the assigned values overlap with the message_type values which are defined in DVB Simulcrypt protocols. They are allocated in the "user defined" range. Thus, a generic TLV message parser can be use for both DVB and TSDuck interfaces.

Definition of messages:

MSG_LOG_SECTION
Contains one section.
Parameter Count
PRM_PID 0-1
PRM_TIMESTAMP 0-1
PRM_SECTION 1
MSG_LOG_TABLE
Contains one complete table (no missing section).
Parameter Count
PRM_PID 0-1
PRM_TIMESTAMP 0-1
PRM_SECTION 1-n
MSG_ECM
Contains the section payload of a "fake" ECM as generated by tsecmg.
Parameter Count
PRM_CW_EVEN 0-1
PRM_CW_ODD 0-1
PRM_ACCESS_CRITERIA 0-1
MSG_ERROR
Contains an error code.
Parameter Count
PRM_ERROR_CODE 1
bool Contains(const std::vector< VALUE > &container, const VALUE &value)
Check if a value is present in a vector container.
Definition: tsAlgorithm.h:156
@ ECM
PID carrying ECM's.

Definition of parameters:

PRM_PID
A 2-byte PID value.
PRM_TIMESTAMP
A timestamp identifying the occurence of the event. Same format
as the activation_time in the EIS<=>SCS DVB Simulcrypt protocol:
year 2 bytes
month 1 byte
day 1 byte
hour 1 byte
minute 1 byte
second 1 byte
hundredth 1 byte
PRM_SECTION
A complete section, including header.
PRM_ERROR_CODE
A 2-byte error code.
PRM_CW_EVEN
PRM_CW_ODD
PRM_ACCESS_CRITERIA
Binary data as sent by the SCS. Included in "fake" ECM's ty tsecmg.
@ DVB
OUI for Digital Video Broadcasting.
uint16_t PID
PID value (13 bits).
Definition: tsTS.h:45