
- #Ffmpeg ubuntu 18.04 how to#
- #Ffmpeg ubuntu 18.04 mp4#
- #Ffmpeg ubuntu 18.04 install#
- #Ffmpeg ubuntu 18.04 update#
To do that you’d simply run: $ ffmpeg -i Despacito.flv -vn Despacito.mp3 Say you’ve downloaded the Despacito video, in flv format, from somewhere, and you want to convert it to an mp3. In the same fashion, you can convert a video file to an audio file. Say we have Despacito.mp3 ʰᵃʰᵃ and we need to convert it to ogg $ ffmpeg -i Despacito.mp3 Despacito.ogg Convert Video to Audio Files We don’t have an audio file available so we’ll just leave the example.

The basic conversion of audio files looks exactly the same. The syntax of this command basically looks like this: $ ffmpeg -i Convert Audio Files To do this we simply run: $ ffmpeg -i big_buck_bunny_480p_20mb.mp4 big_buck_bunny_480p_20mb.webm
#Ffmpeg ubuntu 18.04 mp4#
Say you have an mp4 video file and you want to convert it to webm. This process is typically complex when done manually, but FFmpeg makes this easy by automatically selecting the correct codecs and container. Most people need FFmpeg to easily convert files. With the file downloaded, use the -i command option will display the to display information on the video file: $ ffmpeg -i big_buck_bunny_480p_20mb.mp4 03. You can see a list of command options by using: $ ffmpeg -h 02. For a thorough understanding of FFmpeg we suggest you read the FFmpeg documentation on their website or their wiki ( which is very well organized and we strongly recommend ). NOTE: There are many command options we could talk about, but it is beyond the scope of this tutorial. You’ll find a list of videos, of different sizes, formats and resolutions. If you’re just starting out, these examples will hopefully give you a feel of how FFmpeg works.įor the purposes of this tutorial, we’ll quickly download a sample video file to play with, from here.

The installation was successful and now you can start using the latest version of FFmpeg. To make sure that the installation was successful run the following command to check our FFmpeg version: $ ffmpeg -version
#Ffmpeg ubuntu 18.04 install#
$ sudo apt-get install ffmpeg Step 3 – Check the FFmpeg Version
#Ffmpeg ubuntu 18.04 update#
Update your package index and install FFmpeg via the apt package manager: $ sudo apt-get update With the unofficial PPA added, we can proceed with the installation. $ sudo apt-get install software-properties-common Step 2 – Install FFmpeg 4.x If you get you get the error sudo: add-apt-repository: command not found when running the above command, then just install software-properties-common and try adding the PPA again: To do this, add Jonathon F’s PPA repository by running the following command: $ sudo add-apt-repository ppa:jonathonf/ffmpeg-4 It’s currently not in the Official Ubuntu Repositories, so to install it you’ll have to configure PPA on your system. You can check them out and the latest changes to FFmpeg on their website in the News subsection.

Install FFmpeg 4.x on UbuntuįFmpeg 4.x is the newest major release, and it’s packed with new features. Installing the stable version is that simple, and you start using it. Here’s my output: ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developersīuilt with gcc 7 (Ubuntu 7.3.0-16ubuntu3) Let’s check that FFmpeg is properly installed by checking its’ version: $ ffmpeg -version $ sudo apt-get install ffmpeg Step 2 – Check FFmpeg Version

To install it, update your package index then install FFmpeg by using the apt package manager: $ sudo apt-get update Install FFmpeg 3.x on UbuntuĪt the time of writing, the latest stable version is FFmpeg 3.4.4.
#Ffmpeg ubuntu 18.04 how to#
We’ll see how to install both of them, and you can choose which one fits your needs. To create a sudo user, and read why it’s recommended that you use one, you can follow our tutorial: How to Create a Sudo User on UbuntuĬurrently, the stable version is FFmpeg 3.x, but the latest version is FFmpeg 4.x.
