How To Install libffmpeg-nvenc-dev on Debian 12

Learn how to install libffmpeg-nvenc-dev on Debian 12 with this tutorial. libffmpeg-nvenc-dev is FFmpeg headers for interfacing with NVIDIAs codec APIs

Introduction

In this tutorial we learn how to install libffmpeg-nvenc-dev on Debian 12.

What is libffmpeg-nvenc-dev

libffmpeg-nvenc-dev is:

Nvidia’s NVDEC (formerly NVCUVID) and NVENC offer offloading of video decoding and encoding from the CPU to the GPU. NVDEC and NVENC is supported by NVIDIA cards starting from 2012.

This package contains header files defining the API to use NVDEC and NVENC in applications, e.g., in ffmpeg.

There are three methods to install libffmpeg-nvenc-dev on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libffmpeg-nvenc-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install libffmpeg-nvenc-dev using apt-get by running the following command:

sudo apt-get -y install libffmpeg-nvenc-dev

Install libffmpeg-nvenc-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libffmpeg-nvenc-dev using apt by running the following command:

sudo apt -y install libffmpeg-nvenc-dev

Install libffmpeg-nvenc-dev 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libffmpeg-nvenc-dev using aptitude by running the following command:

sudo aptitude -y install libffmpeg-nvenc-dev

How To Uninstall libffmpeg-nvenc-dev on Debian 12

To uninstall only the libffmpeg-nvenc-dev package we can use the following command:

sudo apt-get remove libffmpeg-nvenc-dev

Uninstall libffmpeg-nvenc-dev And Its Dependencies

To uninstall libffmpeg-nvenc-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libffmpeg-nvenc-dev

Remove libffmpeg-nvenc-dev Configurations and Data

To remove libffmpeg-nvenc-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libffmpeg-nvenc-dev

Remove libffmpeg-nvenc-dev configuration, data, and all of its dependencies

We can use the following command to remove libffmpeg-nvenc-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libffmpeg-nvenc-dev

Dependencies

libffmpeg-nvenc-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libffmpeg-nvenc-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.