Preface The server system environment is: CentOS 6.5 (final); It took a lot of effort to successfully install FFmpeg on the server. I will summarize the process of successful installation and hope it will be useful to everyone^_^; Ps: To use Java to call FFmpeg to process audio and video media files, please refer to the Java FFmpeg Processing Video File Guide Check the CentOS version command: CentOS 7 installation reference here: click me Install via Yum Execute the following commands in order to install FFmpeg: Note: By default, commands are executed as root user. If you are not a root user, please add sudo command before each command to run these commands with root privileges. 1. Update the system yum install epel-release -y yum update -y 2. Install the Nux Dextop YUM repo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro rpm -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 goes wrong, FFmpeg should be successfully installed on the server; You can use the FFmpeg commonly used video conversion commands ffmpeg -i source video path to be converted -s 853x480 -vcodec libx264 -preset medium -crf 28 -y output video path Stepping into the pit & filling the pit Unable to find some dependent libraries when installing on CentOS 7 The main symptoms are as follows: Pit filling guide: 1. First check whether EPEL is successfully installed According to the installation tutorial above, two sources should be installed before installing FFmpeg, one is epel and the other is nux-dextop; You can use the yum repolist command to check whether these two are installed: 2. If epel and nux-dextop have been successfully installed, but the install It may be related to the configuration of epel. At this time, you need to switch to the configuration directory of epel first: Use the command: Edit the epel.repo file through the vim epel.repo command: Because when downloading dependencies, they are pointed to by baseurl or metalink addresses. If the dependencies cannot be found, it is probably because there are problems with these two download addresses. When I encountered this problem, I found that yum used the address specified by metalink in epel.repo to download, and some dependencies could not be downloaded. Later, I commented out the metalink line and let yum use the baseurl to download, and it was able to download. If you cannot download baseurl and metalink, you can consider using Google to replace the original download address. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support for 123WORDPRESS.COM. You may also be interested in:
|
<<: Reasons and solutions for being unable to remotely connect to MySQL database under CentOS7
>>: Detailed installation tutorial of mysql 5.7.11 under Win7 system
Preface Sometimes you need to keep the height of ...
1. Why write this article? You must have read a l...
Business scenario: The visitor's visit status...
Use HTML color blocks to dynamically display data...
Normally, when a deadlock occurs, the connection ...
Table of contents From father to son: 1. In the s...
This time let’s look at a navigation bar layout w...
If you don’t understand what I wrote, there may b...
Usually the goal of building a website is to have...
INSERT INTO hk_test(username, passwd) VALUES (...
1 Enter the Alibaba Cloud console, find the domai...
Docker-compose deploys gitlab 1. Install Docker I...
This article example shares the specific code for...
Introduction to four commonly used MySQL engines ...
First, perform a simple Docker installation. To c...