Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

How to Install and Use FFmpeg on CentOS 7

by Cloudbooklet
5 years ago
in Google Cloud, Compute Engine
How To Install And Use Ffmpeg On Centos 7
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

How to Install and Use FFmpeg on CentOS 7. FFmpeg is a great tool to record, convert and stream audio and video. This tutorial covers the steps required to install FFmpeg on CentOS. We will use the ffmpeg command line tool to convert audio, add text to video and many more. Not using CentOS 7? […]

ADVERTISEMENT

How to Install and Use FFmpeg on CentOS 7. FFmpeg is a great tool to record, convert and stream audio and video.

This tutorial covers the steps required to install FFmpeg on CentOS. We will use the ffmpeg command line tool to convert audio, add text to video and many more.

Not using CentOS 7? Choose a different OS:

ADVERTISEMENT

Ubuntu 18.04 LTS

CentOS 7

Debian 9

ADVERTISEMENT

This tutorial is tested on Google Cloud for automatic image and video processing.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Prerequisites

A CentOS 7 system or server with sudo privileges.

ADVERTISEMENT

If you are using Google Cloud you need to have some additional requirements fulfilled.

  • A running Compute Engine, see the Setting up Compute Engine Instance with CentOS 7.
  • Initial CentOS 7 Server Set up.

Install FFmpeg on CentOS

As FFmpeg is not available in CentOS 7 core repositories you need to install it using yum from Nux Dextop repository.

ADVERTISEMENT

01. Start by updating the packages and install the EPEL software repository.

sudo yum update
sudo yum install epel-release

02. Import the Nux Dextop GPG key to your CentOS system.

ADVERTISEMENT
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro 

Install Nux Dextop repositories.

sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

02. Once done, you can proceed to install FFmpeg.

sudo yum install ffmpeg ffmpeg-devel

03. Verify the installation.

ffmpeg -version

The output will be something similar to this.

Output
ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-28)

Now, FFmpeg is installed successfully and ready to be used.

FFmpeg Examples

In this part, we will look at some basic examples to use the ffmpeg utility.

Basic conversion

While converting the audio and the video files with ffmpeg you don’t need to specify the input and output formats. The input file format is detected automatically and the output format is selected from the file extension.

Convert a video file from webm to mp4

ffmpeg -i input.webm output.mp4

Convert an audio file from ogg to mp3

ffmpeg input.ogg output.mp3

Specifying codecs

You can also specify the codecs you want to use with the -c flag option. The codec can be the name of any supported decoder/encoder or a special value copy which simply copies the input stream.

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

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

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

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

Conclusion

Now you have learned how to install FFmpeg on your CentOS system.

Thanks for your time. If you face any problem or any feedback, just leave a comment below.

Tags: CentOS
Share1Tweet1SendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Fantasy Minecraft Servers

5 Best Fantasy Minecraft Servers in 2023

September 21, 2023

How to Block YouTube Ads on Android TV in 2023 (6 Easy Methods)

5 Best TikTok Private Account Viewer in 2023

Microsoft Surface Event: The Most Exciting and Innovative Launches and Updates

Google Bard Extensions: How to Link Your Gmail, Docs, Maps, and More to an AI Chatbot

Microsoft Editor vs Grammarly: Which is the Best Grammar Checker?

Popular Articles

Bigjpg Ai

Bigjpg AI: Best AI Image Upscaler for Super Resolution

September 7, 2023

10 Free Watermark Remover That Work in 2023

10 Apps to See Who Viewed Your Instagram Profile

10 Best Gay Dating Apps to Use in 2023

Google Watermark Feature: A Solution for AI Image Verification

Microsoft Bing AI Image Generator: How to Create Amazing Artworks with AI

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.