Following this tutorial: http://hasaninter.net/2013/07/01/cpanelwhm-11-38-ffmpeg-install/ Got as far as: 11. Mplayer - remember, this will download a new version of ffmpeg for some crazy reason. When it asks, just hit enter and allow it to download. It's only used for compiling mplayer. [/usr/local/src/mplayer]# make make -C ffmpeg libpostproc/libpostproc.a make[1]: Entering directory `/usr/local/src/mplayer/ffmpeg' make[1]: Leaving directory `/usr/local/src/mplayer/ffmpeg' make[1]: Entering directory `/usr/local/src/mplayer/ffmpeg' CC libpostproc/postprocess.o AR libpostproc/libpostproc.a make[1]: Leaving directory `/usr/local/src/mplayer/ffmpeg' make -C ffmpeg libavfilter/libavfilter.a make[1]: Entering directory `/usr/local/src/mplayer/ffmpeg' CC libavfilter/allfilters.o CC libavfilter/audio.o In file included from libavfilter/audio.h:26, from libavfilter/audio.c:27: libavfilter/internal.h: In function 'ff_insert_inpad': libavfilter/internal.h:264: error: #pragma GCC diagnostic not allowed inside functions libavfilter/internal.h:265: warning: 'input_count' is deprecated (declared at libavfilter/avfilter.h:637) libavfilter/internal.h:266: error: #pragma GCC diagnostic not allowed inside functions libavfilter/internal.h: In function 'ff_insert_outpad': libavfilter/internal.h:277: error: #pragma GCC diagnostic not allowed inside functions libavfilter/internal.h:278: warning: 'output_count' is deprecated (declared at libavfilter/avfilter.h:644) libavfilter/internal.h:279: error: #pragma GCC diagnostic not allowed inside functions libavfilter/audio.c: In function 'avfilter_get_audio_buffer_ref_from_arrays': libavfilter/audio.c:166: warning: 'avfilter_get_audio_buffer_ref_from_arrays_channels' is deprecated (declared at libavfilter/audio.c:84) make[1]: *** [libavfilter/audio.o] Error 1 make[1]: Leaving directory `/usr/local/src/mplayer/ffmpeg' make: *** [ffmpeg/libavfilter/libavfilter.a] Error 2 Code (markup): I have tried installing FFMPEG in the past and had various different issues. Either repositories were out of date or missing entirely, or because of compatibility issues, or because of...well, you name it...any issue it decides to throw up on the day kind of thing. I can safely confess, though, that (to date) I have not managed a single successful FFMPEG install in all my years of being a cPanel server administrator. If anyone does happen to know the solution to the above very vague error please do let me know, thank you.
Weird. I just now finished up a painful ffmpeg install on a cent box running whm. What a pain. First question has to be: do you really need mplayer? If not, the instructions at https://trac.ffmpeg.org/wiki/CentosCompilationGuide are almost exactly right except for the parts about git which seems to not get along well with whm's perl implementation. If you need mplayer, maybe an RPM would be easier than compiling from source? http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS
It looks like what you ran into is a bug with GCC 4.7. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52116
I have tried whmxtra in the past and it was messy. Anyway, FFMPEG installed and compiled with FFMPEG-PHP. Mplayer isnt installed yet, though. Anyway, i decided to test if ffmpeg was working by using Clipbucket. Clipbucket showed a GREEN TICK for all the required bits and bobs. By "bits and bobs" i mean FFMPEG, PHP CLI, MP4BOX, and FLVTOOL2. However, when i upload a video it is stuck in PENDING. No logs either. I click on "File Conversion Log" to see the issue and get "no log found". The "files" directory has been CHMODDED to 0777 so it is writable. :S And...yes...all subdirectories of "files" (including the log one) is too. :S What's more, register_argc_argv is ENABLED. So any solution guys? It didnt even "try" to process so i dont believe this to be a ffmpeg issue necessarily. Only reason i want to try clipbucket is to test ffmpeg. I did type "ffmpeg" into ssh and it came up with a list of options such as "ffmpeg -- help" etc. also, phpinfo says FFMPEG is enabled. The way i see things I'd much rather have not bothered trying to install FFMPEG. I don't even need FFMPEG, was merely interested in having a play around with it. I have to say....it's been a nightmare.
Try something like this in the command line: ffmpeg -i INPUTFILENAMEHERE.avi -y -vcodec libx264 -s 320x180 -acodec libfaac -ab 96k -ac 2 -b 400K -flags +loop -cmp +chroma -partitions 0 -me_method epzs -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 60 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -crf 25 -vpre baseline OUTPUTFILEHERE.mp4 If your ffmpeg is broken, you'll know with that command. I like to test with files from http://www.bigbuckbunny.org/
I just tried this out: http://pastebin.com/r8JDpxnL (it's a test PHP script that uses FFMPEG to display information about a given video). Anyway, these are the results I got: So I am guessing FFMPEG is working? Oh...and... That might explain why Mplayer is still refusing to install. However, has anyone got any idea about a solution?
That script is using ffmpeg-php which is an outdated library that hasn't been updated in quite some time. It looks like ffmpeg is working, at least enough to get info from the media file. I'd still try the command line encode and see if it completes just to be sure. I've seen several posts about the bug you hit but can't seem to find any decent fixes. Did you try one of the repos for mplayer? I'd imagine you will end up in dependency hell but it's worth a try.