mpeg2dec command not found

In this troubleshooting guide we learn how to fix mpeg2dec command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

mpeg2dec: command not found

or when using sudo you get the following error message

sudo: mpeg2dec: command not found

Solutions to mpeg2dec: command not found

How To Fix mpeg2dec: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mpeg2dec 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 mpeg2dec command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.