Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install FFmpeg in CentOS server

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

Today, the editor will share with you the relevant knowledge points about how to install FFmpeg in the CentOS server. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

Preface

Server system environment: centos 6.5 (final)

View centos version command: rpm-Q centos-release

Install via yum

Install ffmpeg by executing the following commands in order:

Note: commands are executed by root by default. If you are not a root user, add the sudo directive before each command to run these commands with root permissions.

1. Update the system

Yum install epel-release-yyum update-y

2. Install the nux dextop yum repo

Rpm-- import http://li.nux.ro/download/nux/rpm-gpg-key-nux.rorpm-uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm

3. Install ffmpeg and ffmpeg development packages

Yum install ffmpeg ffmpeg-devel-y

At this point, if nothing happens, ffmpeg should be successfully installed on the server.

You can view the execution path of the ffmpeg program through the which ffmpeg command in the console

Video conversion commands commonly used in ffmpeg

Ffmpeg-I source video path to be converted-s 853x480-vcodec libx264-preset medium-crf 28-y path to output video

Step on the pit & fill the pit

Some dependent libraries could not be found during installation on centos 7

The main symptoms are as follows:

Guidelines for filling holes:

1. Let's see if epel is installed successfully.

According to the installation tutorial above, you should install two sources, one is epel and the other is nux-dextop, before you finally install ffmpeg

You can use the yum repolist command to see if these two are installed:

two。 If you have successfully installed epel and nux-dextop, but still report an error when executing the command of install ffmpeg, you cannot find some dependencies

It may be related to the configuration of epel. In this case, you need to change to the configuration directory of epel:

Use the command: cd / etc/yum.repos.d/ to change to the configuration directory of epel

Edit the epel.repo file with the vim epel.repo command:

Because when the download is dependent, it will be pointed to by baseurl or metalink, and the dependency cannot be found because there is something wrong with these two download addresses.

When I had this problem at that time, I found that yum was downloaded using the address specified by metalink in epel.repo, and some dependencies could not be downloaded. Later, I commented out the line of metalink and asked yum to download it using the point of baseurl.

If neither baseurl nor metalink can be downloaded for you, consider replacing google with a download address that you can use.

These are all the contents of the article "how to install FFmpeg in CentOS Server". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report