Welcome to our comprehensive guide on installing and using FFmpeg in Ubuntu. FFmpeg is a powerful tool that allows you to manipulate digital audio and video files. In this tutorial, we’ll walk you through the installation process, introduce you to some basic commands, and provide some troubleshooting tips.

Installing FFmpeg in Ubuntu

Before we can start using FFmpeg, we first need to install it. Here’s how:

  • Open the terminal by pressing Ctrl+Alt+T.
  • Update the package list using the command: sudo apt update
  • Install FFmpeg using the command: sudo apt install ffmpeg

That’s it! You’ve successfully installed FFmpeg on your Ubuntu system.

Basic FFmpeg Commands

Now that we’ve installed FFmpeg, let’s look at some basic commands:

  • ffmpeg -i input.mp4 output.avi: This command converts an MP4 file to AVI.
  • ffmpeg -i input.mp4 -vf "scale=1280:720" output.mp4: This command resizes the video to the specified dimensions.
  • ffmpeg -i input.mp4 -ss 00:00:30 -t 00:00:10 output.mp4: This command extracts a portion of the video.

Troubleshooting Tips

If you’re having trouble with FFmpeg, here are a few tips:

  • Make sure you’ve correctly installed FFmpeg. You can check this by typing ffmpeg -version in the terminal.
  • If you’re getting an error message, try searching for it online. There’s a good chance someone else has encountered the same issue and found a solution.
  • If all else fails, you can always ask for help on the FFmpeg contact page.


We hope this guide has helped you install and use FFmpeg in Ubuntu. With this powerful tool, you can manipulate digital audio and video files with ease. Happy video processing!