Install FFmpeg on Fedora 29
FFmpeg is one the free and open source cross-platform solution for converting, recording and streaming media. FFmpeg is also used for converting media files to different formats, resize video, change sample rates for video and audio files. In this tutorial, you are going to learn how to install FFmpeg on Fedora 29.
Before you start to install FFmpeg on Fedora 29. You must have a non-root user account on your server with sudo privileges.
Install FFmpeg on Fedora
After every three months, a new version of FFmpeg comes with new features and bug fixes. Follow below instructions to install FFmpeg on Fedora 29.
Enable RMF Fusion repository on Fedora 29 by running below command:
sudo dnf install \ https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \ https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
Now update the dnf package manager index by typing following command in the terminal:
sudo dnf update
Now you are ready to install FFmpeg on Fedora, to install FFmpeg on Fedora 29 type:
sudo dnf install ffmpeg
Confirm the installation and check FFmpeg version typing below command:
The output should be:
ffmpeg version 2.8.15 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623
Basic FFmpeg Examples
Below are some basic examples to use FFmpeg:
To check the media file information run following command:
ffmpeg -i filename.mp3
To convert an audio
.amr file to
.mp3 run the following command:
ffmpeg -i filename1.amr filename2.mp3
Similarly, you can convert video file like to convert
.mp4 file to
avi run below command:
ffmpeg -i inputvideo.mp4 outputvideo.mkv
You can also remove the audio stream from the video file using below command:
ffmpeg -i inputvideo.mp4 -vn outputaudio.mp3
You have successfully learned how to install FFmpeg on Fedora 29. If you have any queries please don’t forget to comment out.