Knowledge Base

Your Go-To Resource for Expert Insights and Solutions

How to Install and Use FFmpeg on Ubuntu and CentOS

FFmpeg is a powerful multimedia tool that allows you to handle audio, video, and other media files. In this tutorial, we'll go through the steps to install and use FFmpeg on Ubuntu and CentOS using the command line.

Installing FFmpeg on Ubuntu

Open your terminal and run the following command:

Code copied to your clipboard!

Installing FFmpeg on CentOS

Run this command in your terminal:

Code copied to your clipboard!

Using FFmpeg

Once installed, you can use FFmpeg to perform various operations. Here are a few examples:

How to Verify FFmpeg Installation

To check if FFmpeg was installed successfully, you can run the following command:

Code copied to your clipboard!

Basic Usage Examples

  • Convert video format: ffmpeg -i input.mp4 output.avi
  • Resize video: ffmpeg -i input.mp4 -vf scale=640:360 output.mp4
  • Extract audio: ffmpeg -i input.mp4 -q:a 0 -map a output.mp3

FFmpeg can be a complex tool with a wide array of features. These basic commands should help you get started with common tasks. To explore more features, refer to the official documentation.

Related Articles

STAY TUNED
Image