This is a debugging tool that parses and outputs the contents of MPEG-TS files. Currently, it understands TS packets, PAT sections, PMT sections, and PES packets.
You will need git
and python3
installed.
git clone https://github.com/brendanlong/mpeg-ts-inspector.git
cd mpeg-ts-inspector
./setup.sh # installs a Python 3 virtualenv with bitstring and crcmod
Activate the virtualenv with:
source bin/activate
See current options with ./ts_inspect.py -h
.
./ts_inspect.py --show-ts --show-pes --show-pat --show-pmt somefile.ts
./ts_inspect.py --show-ts --show-pes --filter 33,34 somefile.ts