ts_packet_insert command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ts_packet_insert: command not found
or when using sudo you get the following error message
sudo: ts_packet_insert: command not found
Solutions to ts_packet_insert: command not found
How To Fix ts_packet_insert: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ts_packet_insert is provided by tstools package.
tstools is:
TStools is a set of cross-platform command line tools for working with MPEG data.
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 focussed 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)
To fix this problem, we can install more using the command below.
sudo apt-get -y install tstools
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install tstools.
sudo apt -y install tstools
Or if you have aptitude installed you can use the following command.
sudo aptitude install tstools
Summary
In this tutorial we learn how to fix ts_packet_insert command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.