ffmpeg on cPanel server
Hello :)
We need to install ffmpeg on our cPanel dedicated server.
Does anybody knows how to instal ffmpeg on CentOS 6.2 and cPanel, or has some tutorial or web link... Please!
Thanks to all in advance!
-
Hello :) I need some suggestions or official tutorial how to install ffmpeg on cPanel server. Is there some discussion on this topic or tutorial, link... Do I need to prepare something for ffmpeg installation. Is there some ffmpeg auto installer or some solutions? I do please for help! Thank you in advance! 0 -
You can easily install ffmpeg on cpanel server. I will suggest you to go with svn or tar ball. I love to do manually compilation so I will recommend to go with tar ball. You have to compile ffmpeg manually on server using tar. 0 -
You can install ffmpeg by using ffmpeg autoinstaller script or use tar or svn to install ffmpeg on the server. 0 -
Hello :) Please note that assistance with FFMPEG software application installations (including software that utilizes this software) and technical support for this piece of software are not available from cPanel. While FFMPEG software is distributed subject to GPL licenses, the use and installation of the software may also require patent licenses from third parties. Because of the legal uncertainty relating to the FFMPEG software application, we are not able to assist in the installation or troubleshooting of FFMPEG. This is not legal advice or a legal opinion. We are simply explaining that our participation in the installation/troubleshooting of this software is not available. Please see the following location for any legal discussion: FFmpeg License and Legal Considerations You can search this forum for "ffmpeg" to see some threads that show how other users have installed it. However, cPanel staff members can not assist you with FFMPEG (including software that utilizes this software). Thank you. 0 -
I had to do this just the other day but I can't remember which site, exactly, I got the instructions from. Try these: itekblog.com/ffmpeg-centos-7-installation-instructions/ chrisjean.com/install-ffmpeg-and-ffmpeg-php-on-centos-easily/ Chris 0 -
Hello, Thanks to all people that answered this question. :) I will now explain how I installed FFMPEG autoinstaller on CentOS (6.7) / cPanel server (11.50.0) build 30. 1. I installed some packages that are important for FFMPEG autoinstaller via SSH Client: # yum install libcurl libcurl-devel # yum install git # yum install git-all.noarch 2. You need to find this file (depending of server architecture) on the Internet (http://rpmfind.net/linux/rpm2html/search.php?query=perl(ByteLoader)): In my configuration, I used this file: perl-5.8.8-42.el5.x86_64 3. You need to upload downloaded file from official repository to this location (you can use WinSCP): /usr/local/lib64/perl5 4. Under WHM - Service settings - PHP configuration click on advanced settings, you need to set desired values for max upload size and max post size, and memory limit to be in parent with upload and post size. Than you need to save changes under PHP. 5. Restart Apache 6. Access your server via SSH as root 7. mkdir ~/ffmpeg-packages 8. cd ~/ffmpeg-packages 9. wget http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg8/ffmpeginstaller.8.0.tar.gz 10. tar -xvzf ffmpeginstaller.8.0.tar.gz 11. cd ffmpeginstaller.8.0 12. ./install.sh Please wait until installation finish. When installation finish, you will get in the end this message: The ffmpeg and dependency package installation has been completed. You can use the following paths for the major binary locations. Make sure to configure it in your conversion scripts too. /usr/local/bin/ffmpeg /usr/local/bin/mplayer /usr/local/bin/mencoder /usr/bin/flvtool2 /usr/local/bin/MP4Box /usr/local/bin/yamdi 13. Restart Apache
So, save 50$ and enjoy. I hope this will help! :)0 -
Hello, ffmpeg must be displayed in the phpinfo.php? Where should I insert the paths? I must add that in php.ini? Where do I enable ffmpeg? 0 -
Hi Georg, I installed FFMPEG on this way and it is fully usable, without inserting additional lines in php. You should insert path directly in module that you use, for example for ffmpeg: /usr/local/bin/ffmpeg or for mplayer: /usr/local/bin/mplayer It is because this installation is full. You only need to adjust values in php.ini for max upload and post size. Please, just take attention on step 2 and 3. Kind regards! 0 -
Hi Georg, I installed FFMPEG on this way and it is fully usable, without inserting additional lines in php. You should insert path directly in module that you use, for example for ffmpeg: /usr/local/bin/ffmpeg or for mplayer: /usr/local/bin/mplayer It is because this installation is full. You only need to adjust values in php.ini for max upload and post size. Please, just take attention on step 2 and 3. Kind regards!
Hello Thank you for your quick response. Is ffmpeg-php included?0 -
Hello is that right? picload.org/image/piirwla/99.png 0 -
Hi, Yes. This is correct. If you finished all steps without errors, you just need to enter this path (/usr/local/bin/ffmpeg) in module or plugin which you use for converting files in your CMS. I hope you will succeed! Best regards! 0 -
Sorry for bumping an old thread but this is probably the best source for FFMPEG instructions on the internet. I have used this tutorial on many servers but now after the recent update to cPanel and EasyApache 4 I am getting error along the way. Installation script runs fine until Installation of mplayer.tar.gz ....... started /usr/local/cpffmpeg/bin/svn: error while loading shared libraries: libaprutil-1.so.0: cannot open shared object file: No such file or directory mplayer.sh: line 36: cd: mplayer/: No such file or directory mplayer.sh: line 37: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop. make: *** No rule to make target `install'. Stop. cp: cannot stat "etc/codecs.conf": No such file or directory Installation of mplayer.tar.gz ....... Completed Mplayer installation Failed :(
0 -
@ronaldst have u gotten Mplayer installed? I'm having the same issue. 0 -
Hello, Thanks to all people that answered this question. :) I will now explain how I installed FFMPEG autoinstaller on CentOS (6.7) / cPanel server (11.50.0) build 30.
1. I installed some packages that are important for FFMPEG autoinstaller via SSH Client: # yum install libcurl libcurl-devel # yum install git # yum install git-all.noarch 2. You need to find this file (depending of server architecture) on the Internet (http://rpmfind.net/linux/rpm2html/search.php?query=perl(ByteLoader)): In my configuration, I used this file: perl-5.8.8-42.el5.x86_64 3. You need to upload downloaded file from official repository to this location (you can use WinSCP): /usr/local/lib64/perl5 4. Under WHM - Service settings - PHP configuration click on advanced settings, you need to set desired values for max upload size and max post size, and memory limit to be in parent with upload and post size. Than you need to save changes under PHP. 5. Restart Apache 6. Access your server via SSH as root 7. mkdir ~/ffmpeg-packages 8. cd ~/ffmpeg-packages 9. wget http://mirror.ffmpeginstaller.com/old/scripts/ffmpeg8/ffmpeginstaller.8.0.tar.gz 10. tar -xvzf ffmpeginstaller.8.0.tar.gz 11. cd ffmpeginstaller.8.0 12. ./install.sh Please wait until installation finish. When installation finish, you will get in the end this message: The ffmpeg and dependency package installation has been completed. You can use the following paths for the major binary locations. Make sure to configure it in your conversion scripts too. /usr/local/bin/ffmpeg /usr/local/bin/mplayer /usr/local/bin/mencoder /usr/bin/flvtool2 /usr/local/bin/MP4Box /usr/local/bin/yamdi 13. Restart Apache
So, save 50$ and enjoy. I hope this will help! :)
Is this work for CENTOS 7.3? FFMPEG Auto Installer do all packages will install automatically with FFmpeg-PHP Extension? If we get any issue with this install then How to Uninstall FFmpeg auto installer?0 -
Man all my old scripts and methods for FFMPEG don't work anymore. I use CloudLinux with centos 6 and 7. I can't get ffmpeg to run on either OS version. Anything new here? It seems to fail at the mplayer level. From source it says I need GD and common for php which I already have installed. I know cPanel cant help. 0 -
@ronaldst have u gotten Mplayer installed? I'm having the same issue.
I never found a solution to this. If I recall correctly FFMPEG was working fine without finishing this step.0 -
The ffmpeginstaller script does not work in easyapache 4 either. There is a conflict with the install script, probably because the devel packages have changed. It works fine with EasyApache 3. Only mplayer gives an error, you need to set it manually. 0 -
Hello, I have a server with PHP 5.6 and Apache/2.4.25. I have installed ffmpeg on the server and added ffmpeg extension in php.ini but it is not visible in phpinfo. Also on our website it is showing below errors: ====================================== A PHP Error was encountered Severity: Core Warning Message: PHP Startup: ffmpeg: Unable to initialize module Module compiled with module API=20100525 PHP compiled with module API=20131226 These options need to match Filename: Unknown Line Number: 0 Backtrace: ====================================== Is ffmpeg compatible with PHP 5.6 ? I have tried to search the server requirements of ffmpeg but not found exact details? Please help me to fix the issue or suggest me alternate method to use ffmpeg with php 5.6. Thanks. 0 -
I found that ffmpeg was NOT installed if the script bombed during the mplayer install step. The file it's looking for: libaprutil-1.so.0 isn't there, and it's actually SVN looking for it. This can be resolved by running: yum install apr-util Which then installs Welcome! - The Apache Portable Runtime Project. The script then continues to the next line where it bombs when trying to checkout the SVN repository from mplayerhq.hu/design7/dload.html. It appears that the ports for SVN to work were closed, so I tried to open them. Not sure it worked right, but after more fiddling the script then continued on, and bombed on another step shortly thereafter. The script being linked to here isn't exactly in working order. 0 -
Here's how I did it...: Step 1: Update the system sudo yum install epel-release -y sudo yum update -y Step 2: Install the Nux Dextop YUM repo There are no official FFmpeg rpm packages for CentOS for now. Instead, you can use a 3rd-party YUM repo, Nux Dextop, to finish the job. On CentOS 7, you can install the Nux Dextop YUM repo with the following commands: sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm For CentOS 6, you need to install another release: sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm Step 3: Install FFmpeg and FFmpeg development packages sudo yum install ffmpeg ffmpeg-devel -y Step 4: Test drive Confirm the installation of FFmpeg: ffmpeg
0 -
Here's how I did it...:
Step 1: Update the system sudo yum install epel-release -y sudo yum update -y Step 2: Install the Nux Dextop YUM repo There are no official FFmpeg rpm packages for CentOS for now. Instead, you can use a 3rd-party YUM repo, Nux Dextop, to finish the job. On CentOS 7, you can install the Nux Dextop YUM repo with the following commands: sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm For CentOS 6, you need to install another release: sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm Step 3: Install FFmpeg and FFmpeg development packages sudo yum install ffmpeg ffmpeg-devel -y Step 4: Test drive Confirm the installation of FFmpeg: ffmpeg
Does this install latest version of FFmpeg and ffmpeg-php extension?0 -
We are having a really hard time with getting ffmpeg installed and working. I thought maybe we got lucky when we found a dir named usr/local/cpffmpeg with a bunch of libs in it but i guess thats not what we want. Like others here i always used the autoinstaller but that is broken now as i guess some of the libs are out of date and we failed with mplayer as well when we ran it. And i guess apache4 did not make things better. So i found this on youtube, the guy shared it on his dropbox and i had a friend mod it and it installs but i cant get videos to convert. My string sent to FFMPEG is perfect but FFMPEG bombs and i cant find a log file to tell me why its failing on conversion. So since i got this for free im going to share it here, if anyone can help fix it for everyone so that we all can use it than thats great, its a team effort. We really need FFMPEG we are sunk without it.. Please do what you can with this and help us make it work so that we can convert vids. Thanks :) I have changed this filename from sh to text so it can be read. - Removed - 0 -
Yeah I don't know why cPanel hates FFMPEG so much lol. I suggest getting a specialist like Admin-ahead.com. I didn't have the best experience with 24/7 server support. Good luck man, you'll need it. 0 -
Yeah I don't know why cPanel hates FFMPEG so much
This post should be of some use: EasyApache 4 with ffmpeg, mp4box, yamdi, x264, imagemagick and youtube-dl etc.0 -
I wonder why my file was removed? It was in text format so it was harmless. 0 -
Please read the comment at the link I posted. 0 -
@Infopro Forgive me maybe im being stupid here, but that statement says nothing about users of this forum helping each other and it does not ask us to not post code to help each other. It in fact says that cPanel staff cannot assist in any way. We are not asking for your assistance, we are trying to work through this ourselves. So with that said if you scroll up you will see that others have posted code on how they did it. What is the difference in how i posted that file in text format (harmless) rather than post the whole long file in a code tag on the forum. Please explain your issue with the file exactly. And if i need to just post the code on the page i will. 0 -
You might do better to post that script on webhostingtalk or some other SysAdmin forum for assistance. My main issue with the script you posted is this, from your own forum signature: Yes it lists me as root admin but i am green-untrained-and clueless!
Take a look at that file and all the additional things it needs to install on your server to work. And it does not work. But it's installed on your server now. Do you have any clue how to remove it safely without making a mess? I'm assuming you don't. Should the next person looking for this do what you did and install some unknown hacked installer without a clue as well? They can if they like, but it shouldn't come from this forum. This topic has come up over and over thru the years, this very thread was started over 3 years ago. Scroll to the bottom of this thread to see other similar threads, all ending the same way. Installing old out of date scripts is a bad idea. You will make a mess of your server.0 -
@Infopro First of all sir, i understand your concern and it is your forum so you can push your weight around all you like if thats what makes your day. However your reply is not logical at all, it does not look as if you posted the same or similar text to all the other people posting code not do to so because someone might try it. What about them huh!! Why selectively pick on my posted code. Also i did not write that, i found that online and i had a experienced server tech test it and make sure it would complete the install process and that the libs were updated. Then he went on vacation and is not available. I looked through that file myself and i found nothing of malicous intent. The issue i am having is that ffmpeg is not converting vids, the issue is not the install is not working. So i thought maybe it was a needed library that just had to be added to the script. People post code on here all the time, some for some systems and some for others, if you run the wrong thing on the wrong type of server you can break it yes. But as i said that risk comes with the territory. And again i remind you that everyone else that shared their code did not get it removed did they? Again i understand your concern but you cant possibly protect everyone from everything in an open forum... Some people will make mistakes, thats how we learn. And that script has nothing malicous in it, and nothing that will cause harm. If it did i would not have posted it.. I also clearly stated that it did not work as far as converting vids, so with that said most would skip it over anyway unless they felt like they could fix it. Again its your forum you can close the thread if you dont want ffmpeg discussed or us helping each other on here. But what i think is that you are singling me out because you had a bad day and your tossing your weight around, as you usually do without cause or justification. Do as you will... im done with this thread anyway and im not going to let you make my day a downer... 0 -
Yep, that's it. 0
Please sign in to leave a comment.
Comments
30 comments