Fork of tstools, formerly hosted at code.google.com/p/tstools.
This is a collection of utilities for working with MPEG data on 64-bit Linux.
The goal of this fork is not portability and not being a drop-in replacement, but to make it possible to compile all the utilities with a modern C++ compiler, and make them easy to package on a modern Linux distro.
Tested on Arch Linux with GCC 8.2.1 and GCC 10.1.0.
- cxx
- SCons
- GNU
make - C++ compiler with support for
-std=c++2a
Build a utility:
cxx -C tsplay
Install the desired utility (use sudo if required):
install -Dm755 -t /usr/bin tsplay/tsplay
Install the corresponding man page (use sudo if required):
install -Dm644 -t /usr/share/man/man1 docs/mdoc/tsplay.1
Or build and install everything:
sudo make install
The following utilites are available:
tsplayes_testesdotses2tsesfilteresmergeesreportesreversem2ts2tspcapreportpsdotspsreportrtp2264stream_typeps2tsts2ests2psts_packet_inserttsdvbsubtsfiltertsinfotsreporttsserve
- Fix all warnings.
- Use
enum classfor all enums. - Add more comprehensive tests, to ensure that everything works while porting to C++17.
- Restructure header files, make
*_fns.hjust*_.hand place the function bodies that are notinlinein.cppfiles. - Remove
staticfrom functions that doesn't need it. - Use
const std::stringwhenever possible. - Use
boolwhenever possible, instead ofint.
The emphasis is on relatively simple tools which concentrate on MPEG (H.264 and H.262) data packaged according to H.222 (i.e., TS or PS), with a particular interest in checking for conformance.
Transport Stream (TS) is typically used for distribution of cable and satellite data. Program Stream (PS) is typically used to store data on DVDs.
The tools are focused on:
- Quick reporting of useful data (
tsinfo,stream_type) - Giving a quick overview of the entities in the stream (
esdots,psdots) - Reporting on TS packets (
tsreport) or ES units/frames/fields (esreport) - Simple manipulation of stream data (
es2ts,esfilter,esreverse,esmerge,ts2es) - Streaming of data, possibly with introduced errors (
tsplay).
cd common
cxx test
- MPL 1.1
- 2.0.99