Pular para o conteúdo principal

Installing FFMPEG on Ubuntu

FFMPEG is a powerful multimedia framework that enables users to convert, record, and stream audio and video files. It is an open-source software that is compatible with various operating systems like Windows, macOS, and Linux. In this tutorial, we will guide you through the process of installing FFMPEG on Ubuntu.

Step 1: Update Ubuntu Package List

The first thing to do is to update the Ubuntu package list to ensure that we have the latest version of the software. To do this, open your terminal and type the command below:

sudo apt update

Step 2: Install FFMPEG

After updating the package list, we can now proceed to install FFMPEG. To do this, type the command below:

sudo apt install ffmpeg

The installation process may take a few minutes to complete, depending on your internet speed.

Step 3: Verify FFMPEG Installation

After the installation is complete, you can verify that FFMPEG is installed on your system by typing the command below:

ffmpeg -version

This command will display the version of FFMPEG that is installed on your system.

Step 4: Basic Usage of FFMPEG

Once FFMPEG is installed, you can start using it to perform various multimedia tasks. Here are some examples of basic commands:

Convert Video to Different Format

To convert a video from one format to another, use the following command:

ffmpeg -i input_file.mp4 output_file.avi

This command will convert the input_file.mp4 to output_file.avi.

Extract Audio from Video

To extract the audio from a video file, use the following command:

ffmpeg -i input_file.mp4 -vn -acodec copy output_file.mp3

This command will extract the audio from input_file.mp4 and save it as output_file.mp3.

Resize Video

To resize a video, use the following command:

ffmpeg -i input_file.mp4 -vf scale=640:360 output_file.mp4

This command will resize input_file.mp4 to 640x360 and save it as output_file.mp4.

Conclusion

In this tutorial, we have shown you how to install FFMPEG on Ubuntu and perform basic multimedia tasks using the software. FFMPEG is a powerful tool that can be used for various purposes, and we hope this tutorial has been helpful to you.