![]()  | 
  
    libgpac
    
   Documentation of the core library of GPAC 
   | 
  
#include <mpegts.h>
 Collaboration diagram for GF_M2TS_Mux_Stream:MPEG-2 TS muxer stream
| struct __m2ts_mux_stream* GF_M2TS_Mux_Stream::next | 
next stream
| u32 GF_M2TS_Mux_Stream::pid | 
pid
| u8 GF_M2TS_Mux_Stream::continuity_counter | 
CC of the stream
| struct __m2ts_mux_program* GF_M2TS_Mux_Stream::program | 
parent program
| u32 GF_M2TS_Mux_Stream::bit_rate | 
average stream bit-rate in bit/sec
| GF_M2TS_Time GF_M2TS_Mux_Stream::time | 
multiplexer time - NOT THE PCR
| GF_M2TS_Time GF_M2TS_Mux_Stream::next_time | 
next time for packet
| Bool GF_M2TS_Mux_Stream::pcr_only_mode | 
allow PCR only packets
| GF_M2TS_Mux_Table* GF_M2TS_Mux_Stream::tables | 
tables for section PIDs
| u32 GF_M2TS_Mux_Stream::total_table_size | 
total table sizes for bitrate estimation (PMT/PAT/...)
| GF_M2TS_Mux_Table* GF_M2TS_Mux_Stream::current_table | 
current table - used for on-the-fly packetization of sections
| GF_M2TS_Mux_Section* GF_M2TS_Mux_Stream::current_section | 
active section
| u32 GF_M2TS_Mux_Stream::current_section_offset | 
current section offset
| u32 GF_M2TS_Mux_Stream::refresh_rate_ms | 
carousel rate in ms
| u8 GF_M2TS_Mux_Stream::initial_version_number | 
init verision of table
| u8 GF_M2TS_Mux_Stream::force_pes | 
PES version of transport for this codec type is forced
| Bool GF_M2TS_Mux_Stream::table_needs_update | 
table needs updating
| Bool GF_M2TS_Mux_Stream::table_needs_send | 
table needs send
| Bool GF_M2TS_Mux_Stream::force_single_au | 
force one AU per PES
| Bool GF_M2TS_Mux_Stream::set_initial_disc | 
force initial discontinuity
| Bool GF_M2TS_Mux_Stream::force_reg_desc | 
force registration descriptor
| u32 GF_M2TS_Mux_Stream::min_bytes_copy_from_next | 
minimal amount of bytes we are allowed to copy frome next AU in the current PES. If no more than this is available in PES, don't copy from next
| u32(* GF_M2TS_Mux_Stream::process) (struct __m2ts_mux *muxer, struct __m2ts_mux_stream *stream) | 
process PES or table update/framing returns the priority of the stream, 0 meaning not scheduled, 1->N highest priority sent first
| GF_M2TSStreamType GF_M2TS_Mux_Stream::mpeg2_stream_type | 
stream type
| u32 GF_M2TS_Mux_Stream::mpeg2_stream_id | 
stream ID
| u32 GF_M2TS_Mux_Stream::scheduling_priority | 
priority
| GF_ESIPacket GF_M2TS_Mux_Stream::curr_pck | 
current packet being processed - does not belong to the packet fifo
| u32 GF_M2TS_Mux_Stream::pck_offset | 
offset in packet
| u32 GF_M2TS_Mux_Stream::next_payload_size | 
size of next payload, 0 if unknown
| u32 GF_M2TS_Mux_Stream::copy_from_next_packets | 
number of bytes to copy from next packet
| u32 GF_M2TS_Mux_Stream::next_next_payload_size | 
size of next next payload, 0 if unknown
| u32 GF_M2TS_Mux_Stream::next_next_next_payload_size | 
size of next next next payload, 0 if unknown
| u32 GF_M2TS_Mux_Stream::pes_data_len | 
size of packetized packet
| u32 GF_M2TS_Mux_Stream::pes_data_remain | 
remaining bytes to send as TS packets
| Bool GF_M2TS_Mux_Stream::force_new | 
if set forces a new PES packet at next packet
| Bool GF_M2TS_Mux_Stream::discard_data | 
flag set to indicate packet data shall be freed (rewrite of source packet)
| u16 GF_M2TS_Mux_Stream::next_pck_flags | 
flags of next packet
| u8 GF_M2TS_Mux_Stream::next_pck_sap | 
SAP type of next packet
| u64 GF_M2TS_Mux_Stream::next_pck_cts | 
CTS of next packet
| u64 GF_M2TS_Mux_Stream::next_pck_dts | 
DTS of next packet
| u32 GF_M2TS_Mux_Stream::reframe_overhead | 
overhead of reframing in bytes (ex, ADTS header or LATM rewrite)
| Bool GF_M2TS_Mux_Stream::start_pes_at_rap | 
if set, forces a PES start at each RAP
| Bool GF_M2TS_Mux_Stream::prevent_two_au_start_in_pes | 
if set, do not have more than one AU start in a PES packet
| struct __elementary_stream_ifce* GF_M2TS_Mux_Stream::ifce | 
ES interface of stream
| GF_Fraction GF_M2TS_Mux_Stream::ts_scale | 
timescale scale factor (90khz / es_ifce.timeScale)
| GF_M2TS_Packet* GF_M2TS_Mux_Stream::pck_first | 
packet fifo head
| GF_M2TS_Packet* GF_M2TS_Mux_Stream::pck_last | 
packet fifo tail
| GF_M2TS_Packet* GF_M2TS_Mux_Stream::pck_reassembler | 
packet reassembler (PES packets are most of the time full frames)
| GF_Mutex* GF_M2TS_Mux_Stream::mx | 
mutex if enabled
| u64 GF_M2TS_Mux_Stream::last_br_time | 
avg bitrate computed
| u32 GF_M2TS_Mux_Stream::bytes_since_last_time | 
number of bytes sent since last bitrate estimation
| u32 GF_M2TS_Mux_Stream::pes_since_last_time | 
number of PES packets sent since last bitrate estimation
| u64 GF_M2TS_Mux_Stream::last_dts | 
last DTS sent
| u8 GF_M2TS_Mux_Stream::table_id | 
MPEG-4 over MPEG-2 sections table id (BIFS, OD, ...)
| GF_SLHeader GF_M2TS_Mux_Stream::sl_header | 
MPEG-4 SyncLayer header of the packet
| u32 GF_M2TS_Mux_Stream::latm_last_aac_time | 
last time when the AAC config was sent for LATM
| GF_List* GF_M2TS_Mux_Stream::loop_descriptors | 
list of GF_M2TSDescriptor to add to the MPEG-2 stream. By default set to NULL
| u32 GF_M2TS_Mux_Stream::num_frame | 
frame number for SRT encapsulation
| u32 GF_M2TS_Mux_Stream::pck_sap_type | 
packet SAP type when segmenting the TS
| u64 GF_M2TS_Mux_Stream::pck_sap_time | 
packet SAP time (=PTS) when segmenting the TS
| u32 GF_M2TS_Mux_Stream::process_res | 
last process result