How you can Set up and Use FFmpeg on CentOS 8

FFmpeg is a free and open-source assortment of instruments for dealing with multimedia recordsdata. It accommodates a set of shared audio and video libraries equivalent to libavcodec, libavformat, and libavutil. With FFmpeg, you’ll be able to convert between varied video and audio codecs, set pattern charges, seize streaming audio/video, and resize movies.

This text describes set up FFmpeg on CentOS 8.

Putting in FFmpeg on CentOS 8 #

FFmpeg isn’t accessible within the default CentOS Eight repositories. You’ll be able to select to construct the FFmpeg instruments from the supply or to put in it utilizing dnf from the Negativo17 repository. We’ll go together with the second choice.

Full the next steps to put in FFmpeg on CentOS 8:

  1. The Negativo17 repository is determined by the EPEL and PowerTools repositories. Run the next instructions as root or person with sudo privileges to allow the required repositories:

    sudo dnf set up epel-release dnf-utilssudo yum-config-manager –set-enabled PowerToolssudo yum-config-manager –add-repo=

  2. As soon as the repositories are enabled, set up FFmpeg:

    sudo dnf set up ffmpeg

  3. Confirm the FFmpeg set up by checking its model:

    ffmpeg -version

    On the time of writing this text, the present model of FFmpeg accessible within the Negativo17 repository is 2.8.15.

    ffmpeg model 4.2.2 Copyright (c) 2000-2019 the FFmpeg builders
    constructed with gcc 8 (GCC)

    The command may even present the FFmpeg configuration choices.

That’s it. FFmpeg has been put in in your CentOS machine, and you can begin utilizing it.

Utilizing FFmpeg #

On this part, we are going to have a look at some primary examples on use the ffmpeg utility.

Fundamental conversion #

When changing audio and video recordsdata with ffmpeg you shouldn’t have to specify the enter and output codecs. The enter file format is auto detected and the output format is guessed from the file extension.

  • Convert a video file from mp4 to webm:

    ffmpeg -i enter.mp4 output.webm

  • Convert an audio file from mp3 to ogg:

    ffmpeg -i enter.mp3 output.ogg

Utilizing codecs #

When changing recordsdata, use the -c choice to specify the codecs. It may be a reputation of any supported decoder/encoder or a particular worth copy that merely copies the enter stream.

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

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

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

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

Conclusion #

We’ve proven you set up FFmpeg on CentOS 8. You need to now go to the official FFmpeg Documentation web page and discover ways to use FFmpeg to transform and your video and audio recordsdata.

Should you hit an issue or have suggestions, go away a remark beneath.


Germany Devoted Server

Leave a Reply