Remap changes the pid number to the desired value.
Description of fields
Map PIDs -
Override pid numbers
pmt=100, video=101, audio=102, ait=103, 1003=200
1003=200 - change pid 1003 number to 200.
audio=100 - change audio pid to 100
video=107 - change video pid to 107
ttx=108 - change teletext pid to 108
pmt=109 - change PMT pid to 109
ait=103 - change ait pid to 103
pcr=111 - change pcr pid to 111
sub=112 - change subtitles pid to 112
ac3=113 - change ac3 audio pid to 113
aac=114 - change aac audio pid to 114
Filtering pids in the stream.
102, 103, 90 - the remaining pids will be removed.
To change the PNR number (aka SID)
Change the number of the transport stream id
Tables in the stream
Each table or elementary stream in the transport stream is identified by a PID.
In the simplest mpeg-ts stream, usually contains:
service tables (PSI),
multiple audio tracks (for different languages), teletext, encoding information, or other tables may be present.
PSI - (Program Specific Information)
Possible table types:
PAT - (Program Association Table):
Contains PIDS of all PMT. Her own PID is always 0x0.
PMT - (Program Map Table):
The structure of the program contains PIDs and basic characteristics of elementary streams. Each program has its own PMT with its own PID. In addition, the PMT contains conditional access system ECM messages if the program contains encrypted elementary streams
CAT - (Conditional Access Table):
The conditional access table contains a list of conditional access systems and the numbers PIDs ECM (EMM - entitlement management messages)
The CAT table may be missing if the stream is not encrypted.
These types of tables you will meet in the work most often