lavinfo command not found

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

Introduction

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

lavinfo: command not found

or when using sudo you get the following error message

sudo: lavinfo: command not found

Solutions to lavinfo: command not found

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

In Ubuntu lavinfo is provided by mjpegtools package.

mjpegtools is:

The mjpeg programs are a set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux.

To fix this problem, we can install more using the command below.

sudo apt-get -y install mjpegtools

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install mjpegtools.

sudo apt -y install mjpegtools

Or if you have aptitude installed you can use the following command.

sudo aptitude install mjpegtools

Summary

In this tutorial we learn how to fix lavinfo command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.