extract_mpeg2 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
extract_mpeg2: command not found
or when using sudo you get the following error message
sudo: extract_mpeg2: command not found
Solutions to extract_mpeg2: command not found
How To Fix extract_mpeg2: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu extract_mpeg2 is provided by mpeg2dec package.
mpeg2dec is:
Simple libmpeg2 application which can decode and play ES, PS, and TS video streams. Includes extract_mpeg2 demuxer and various output drivers.
This package provides the mpeg2dec and extract_mpeg2 tools.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mpeg2dec
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mpeg2dec.
sudo apt -y install mpeg2dec
Or if you have aptitude installed you can use the following command.
sudo aptitude install mpeg2dec
Summary
In this tutorial we learn how to fix extract_mpeg2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.