Control Web Panel
WebPanel => FFMPEG => Topic started by: tfbpa on March 16, 2015, 09:04:02 AM
-
I have tried to install ffmpeg through the installer many, many times, but never got it to work.
All seems to go OK, no errors and when doing the following commands all seems to be ok.
[root@localhost /]# whereis ffmpeg
ffmpeg: /usr/bin/ffmpeg /usr/share/ffmpeg /usr/share/man/man1/ffmpeg.1.gz
[root@localhost /]# ffmpeg
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 13 2014 13:00:18 with gcc 4.4.6 (GCC) 20120305 (Red Hat 4.4.6-4)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-frei0r --enable-libopencv --enable-libdc1394 --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.102 / 2. 5.102
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
Even the following line is added in php.ini
extension="ffmpeg.so"
So all should be OK, but it isn't...
I have tried to find ffmpeg.so, but that isn't anywhere on my system.
[root@localhost ~]# find / -name ffmpeg.so
[root@localhost ~]#
By accident I did a PHP grep and this gave the following error
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/extensions/no-debug-non-zts-20100525/ffmpeg.so' - /usr/lib64/extensions/no-debug-non-zts-20100525/ffmpeg.so: cannot open shared object file: No such file or directory in Unknown on line 0
So it seems that the installation went OK, but in reality since ffmpeg.so is missing, it is never loaded and therefore doesn't work.
Does anybody have any idea as to how to fix this?
Thanks.
-
what you need is ffmpeg-php extenion. I would suggest you to manually install it also automated installing of ffmpeg-php should never be done.
-
This article can help you to correctly install ffmpeg in cwp. I see there is extension directory missing in php.ini. Complete all the steps and you are good to go.
http://blog.bullten.com/installing-ffmpeg-on-centos-web-panel/
-
Excellent, thanks very much!
I did have to make some minor changes, but I now finally have ffmpeg installed and enabled on my server.
The thing I needed to change was:
- put full path to ffmpeg.so in php.ini
extension="/usr/lib64/extensions/no-debug-non-zts-20100525/ffmpeg.so"
Thanks again for your help, much appreciated.
-
Well you dont need to add full path in extension. If you set extension_dir like explained in the article then adding extention = "ffmpeg.so" would do the job.