FFmpeg packages are available in the official Ubuntu repository and may be installed using the apt package manager. Installing FFmpeg on Ubuntu is as simple as running the given command. FFmpeg may lag behind the newest version in the repositories, though.
😀 😍 😀
It is possible to install FFmpeg on Ubuntu 20.04 using apt:
Login as root via putty first then run...
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install ffmpeg
If you are using Ubuntu 14.04
Libav has replaced FFmpeg in Ubuntu 14.04. FFmpeg is currently in Ubuntu 15.04, however, 14.04 does not have an official package yet. You will see how to install FFmpeg from the mc3man PPA in this guide.
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get install ffmpeg
The FFmpeg version may be validated using the FFmpeg -version command.
sudo ffmpeg -version
Use the command below to list all available FFmpeg encoders and decoders.
sudo ffmpeg -encoders sudo ffmpeg -decoders
You do not have to specify the input and output formats when converting audio and video files using FFmpeg. The output format is inferred from the file extension, while the input format is auto-detected.
To convert an mp4 file to a WebM file, follow these steps:
ffmpeg -i your-input.mp4 your-output.webm
To convert an mp3 file to an Ogg file, follow these steps:
ffmpeg -i your-input.mp3 your-output.ogg
Using the libvpx video and libvorbis audio codecs, convert an mp4 video file to webm:
ffmpeg -i your-input.mp4 -c:v libvpx -c:a libvorbis your-output.webm
Convert an mp3 file to an Ogg file using the libopus codec.
ffmpeg -i your-input.mp3 -c:a libopus your-output.ogg
You've completed the installation of FFmpeg on Ubuntu 18.04. You can now learn how to use FFmpeg to convert video and audio files by visiting the official FFmpeg Documentation website.
Leave a comment below if you run into any issues or have any feedback. 🤩 🤩 🤩 😍 🤩