Request: POST /control/
{
"cmd": "scan-init",
"scan": "..."
}
scan
- stream address. Read more about Media Address FormatResponse:
{
"scan-init": "ok",
"id": "..."
}
id
- identifier of the created analyzer instanceAnalyzer will be stopped automatically in 10 seconds. To keep analyzer active for longer, use scan-check
API method.
Request: POST /control/
{
"cmd": "scan-kill",
"id": "..."
}
id
- identifier of the analyzer instanceThis method stops analyzer immediatelly.
Request: POST /control/
{
"cmd": "scan-check",
"id": "..."
}
id
- identifier of the analyzer instanceResponse:
{
"scan-check": "ok",
"scan": [
{
"psi": "...",
"table_id": N,
"pid": N,
"version": N,
"crc32": N,
...
}
]
}
scan
- array with stream information, if no any new information this field will be omittedStream information:
psi
- Program Stream Information (PSI) packet name. Could be: pat
, pmt
, cat
, nit
, sdt
table_id
- PSI identifierpid
- MPEG-TS packet identifierversion
- PSI packet versioncrc32
- PSI packet checksumAdditional fields depen of the PSI type.
Program Association Table (PAT) is a list of programs. Contains Program Number (PNR) and Packet Identifier (PID) of the associated PMT. Additional fields:
{
"psi": "pat",
"table_id": 0,
"pid": 0,
"tsid": N,
"programs": [
{
"pnr": N,
"pid": N
}
]
}
table_id
- always 0
pid
- always 0
tsid
- Transport Stream identifierprograms
- list of programsProgram information:
pnr
- program numberpid
- MPEG-TS packet identifier for PMTProgram Mapping Table (PMT) is a list of program elementary streams: Video, Audio, and other data. Additional fields:
{
"psi": "pmt",
"table_id": 2,
"pnr": N,
"pid": N,
"pcr": N,
"streams": [
{
"pid": N,
"type_name": "...",
"type_id": N,
"descriptors": [
{
"type_id": N,
"type_name": "...",
...
}
]
}
]
}
table_id
- always 2
pid
- MPEG-TS packet identifierpnr
- Program Numberpcr
- MPEG-TS packet identifier for packets with the Program Clock Reference (PCR) timestampsstreams
- list of program elementary streamsElementary Stream information:
pid
- MPEG-TS packet identifier for elementary streamtype_name
- elementary stream type: VIDEO
, AUDIO
, SUB
, TTX
, AIT
, DATA
type_id
- elementary stream identifierdescriptors
- elementary stream descriptors contains additional information