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 a CentOS server

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how to install FFmpeg in the CentOS server. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

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.

The above is the editor for you to share how to install FFmpeg in the CentOS server, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow 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

Servers

Wechat

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

12
Report