Haskell implementation of mpegts parser. The program can print info for mpegts (188 B per packet), demux streams, detect PCR discontinuities etc.
git clone github.com/hepek/MPEG-TS
cd MPEG-TS
cabal install
Running the program without parameters will display its options:
MPEG-TS - a program for MPEGTS stream analysis.
Usage: MPEG-TS info <FILE> #to view stream info of a file
MPEG-TS adaptation <FILE> #to view stream adaptation fields
MPEG-TS discont <PID> <FILE> #to view stream discontinuities
MPEG-TS hasDiscont <FILE> #to check for discontinuities in any program
MPEG-TS uniqPids <FILE> #to display a list of unique PIDs in a stream
MPEG-TS demux pid <SOURCEFILE> <DESTFILE> #to demux a file
Will display first valid PCR information
Will print all adaptation fields of a stream
Attempts to discover discontinuities in the stream by examining appropriate flags in adaptation fields.
Prints a list of unique PIDs found in a file. Similar to info, but may take more time, as it needs to pass trough entire file to terminate.
Demuxes a PID into a destination file. Inspect available PIDs with info or demux option.
- Add parser config for user-configurable error handling
- Add CRC32 checking
- Add transmission error checking
- Add continunuity count checking and/or discarding/see (1.)