Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Install and Use FFmpeg on Ubuntu 20.04 - DesignLinux

Sep 23 2020
designlinux 0 Comments
How to Install and Use FFmpeg on Ubuntu 20.04

FFmpeg is an open-source and free cross-platform solution for streaming audio, video, recording and conversion. It can be used to convert media files to from one format to another and set sample rates, capture streaming audio/video, and resize videos. In this tutorial, we will show you how to install FFmpeg on Ubuntu 20.04.

Prerequisites#

Before starting installation, you must have a non-root user account on your server with sudo privileges.

Installing FFmpeg on Ubuntu#

The FFmpeg package is included in standard Ubuntu repositories and can be installed using apt package manager. Currently, at the time of writing this article, the version of FFmpeg is 4.2.x available in the Ubuntu repositories.

Perform the following steps to install FFmpeg on Ubuntu 20.04:

Step 1 – Update package index list#

First, you should update the package index list of your system

sudo apt update

Step 2 – Install FFmpeg#

To install FFmpeg run the following command:

sudo apt install ffmpeg

Step 3 – Verify Installation#

Once the installation complete, you can verify the installation by checking it’s version:

ffmpeg -version

It should show output like the following:

ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)

Usually, Ubuntu repositories does not have latest version, if you want to install the latest version of FFmpeg you’ll need to build the FFmpeg tools from source.

FFmpeg Examples#

Following are the few basic examples for using the ffmpeg utility. While you convert the audio and video files using ffmpeg it will consider the files format itself.

To convert an audio .amr file to .mp3 run the following command:

ffmpeg -i filename1.amr filename2.mp3

Convert a video file from mp4 to webm:

ffmpeg -i input_file.mp4 output_filename.webm

You can specify the codecs by using the -c option. It can be a name of any supported decoder/encoder or a special value copy that simply copies the input stream.

Convert a video file from mp4 to webm using the libvpx video codec and libvorbis audio codec:

ffmpeg -i input.mp4 -c:v libvpx -c:a libvorbis output.webm

Convert an audio file from mp3 to ogg encoded with the libopus codec.

ffmpeg -i input.mp3 -c:a libopus output.ogg

Conclusion#

You have learned how to install FFmpeg on Ubuntu 20.04 system. To know more about convert and your video and audio files visit the official FFmpeg Documentation page

If you have any question of feedback, leave a comment below.

Related

Tags: ffmpeg, ubuntu

How to Install Memcached on Debian 10

Prev Post

SSH Command

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 0
  • 67
  • 605,817

DesignLinux.com © All rights reserved

Go to mobile version