How To Install tk-mpeg on Ubuntu 18.04

In this tutorial we learn how to install tk-mpeg on Ubuntu 18.04. tk-mpeg is Tk MPEG1 encoder based on ezMPEG

Introduction

In this tutorial we learn how to install tk-mpeg on Ubuntu 18.04.

What is tk-mpeg

tk-mpeg is:

Tk-mpeg is a simple and portable Tk package to encode MPEG1 streams. Based on ezMPEG, it has the following features:

  • based on ISO-11172.2 Specs
  • I-frame encoding
  • GOP size can be defined
  • quality settings can be defined
  • multiple parallel streams
  • variable bitrate

There are three methods to install tk-mpeg on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install tk-mpeg Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install tk-mpeg using apt-get by running the following command:

sudo apt-get -y install tk-mpeg

Install tk-mpeg Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install tk-mpeg using apt by running the following command:

sudo apt -y install tk-mpeg

Install tk-mpeg Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install tk-mpeg using aptitude by running the following command:

sudo aptitude -y install tk-mpeg

How To Uninstall tk-mpeg on Ubuntu 18.04

To uninstall only the tk-mpeg package we can use the following command:

sudo apt-get remove tk-mpeg

Uninstall tk-mpeg And Its Dependencies

To uninstall tk-mpeg and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove tk-mpeg

Remove tk-mpeg Configurations and Data

To remove tk-mpeg configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge tk-mpeg

Remove tk-mpeg configuration, data, and all of its dependencies

We can use the following command to remove tk-mpeg configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge tk-mpeg

References

Summary

In this tutorial we learn how to install tk-mpeg package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.