Hi mam,
Could you please let me know the manual installation of ffmpeg-php extension in ubuntu 20.04
When i click the download https://sourceforge.net/projects/ffmpeg-php/files/latest/download to download the file, it is not downloading the exact file
Again i tried to take the url by manually copying the link https://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.5.3.1/ and then copied the file name like
https://sourceforge.net/projects/ffmpeg-php/files/ffmpeg-php/0.5.3.1/ffmpeg-php-0.5.3.1.tbz2
It is downloading the file, but after downloading, some important files are missing in the extracted directory
=================
root@ip-172-31-93-76:/usr/local/src/ffmpeg-php-0.5.3.1# ll
total 220
drwxr-sr-x 3 ubuntu users 4096 Jun 10 2008 ./
drwxr-xr-x 4 root root 4096 Jan 12 10:23 ../
-rw-r--r-- 1 ubuntu users 128 Jun 10 2008 CREDITS
-rw-r--r-- 1 ubuntu users 10386 Jun 10 2008 ChangeLog
-rw-r--r-- 1 ubuntu users 71 Jun 10 2008 EXPERIMENTAL
-rw-r--r-- 1 ubuntu users 3362 Jun 10 2008 INSTALL
-rw-r--r-- 1 ubuntu users 18009 Jun 10 2008 LICENSE
-rw-r--r-- 1 ubuntu users 0 Jun 10 2008 TODO
-rw-r--r-- 1 ubuntu users 3135 Jun 10 2008 config.m4
-rw-r--r-- 1 ubuntu users 4619 Jun 10 2008 ffmpeg-php.c
-rw-r--r-- 1 ubuntu users 13207 Jun 10 2008 ffmpeg_animated_gif.c
-rw-r--r-- 1 ubuntu users 1941 Jun 10 2008 ffmpeg_animated_gif.h
-rw-r--r-- 1 ubuntu users 2068 Jun 10 2008 ffmpeg_errorhandler.c
-rw-r--r-- 1 ubuntu users 22688 Jun 10 2008 ffmpeg_frame.c
-rw-r--r-- 1 ubuntu users 3347 Jun 10 2008 ffmpeg_frame.h
-rw-r--r-- 1 ubuntu users 39049 Jun 10 2008 ffmpeg_movie.c
-rw-r--r-- 1 ubuntu users 3185 Jun 10 2008 ffmpeg_movie.h
-rw-r--r-- 1 ubuntu users 25866 Jun 10 2008 gd.h
-rw-r--r-- 1 ubuntu users 950 Jun 10 2008 gd_io.h
-rw-r--r-- 1 ubuntu users 2487 Jun 10 2008 php_ffmpeg.h
-rw-r--r-- 1 ubuntu users 3805 Jun 10 2008 test_ffmpeg.php
drwxr-sr-x 3 ubuntu users 4096 Jun 10 2008 tests/
-rw-r--r-- 1 ubuntu users 14310 Jun 10 2008 tmp.png
====================================
Here where is the configure file to install the ./configure command
From other source directory, it got extracted directory with configure file , when i ran configure , it is showing the headers are not included
The other source which i got , Its URL is missing , so i dont have exact proof to give you the header error
Kindly give me the exact steps to download and install the ffmpeg-php module so that it is visible in the phpinfo page. My server have ffmpeg application seperately, but dont have the php extension
ALso i would like to know whether there is any possibilty to enable exec for ffmpeg only other than allowing the "exec" in disable_functions in php.ini which is security voilation
Please reply as soon as possible
Hi mam,
There is an updation in my query. Now i am facing issue in the running the "./configure " command after extracting the ffmpeg-php tar file
=============
root@ip-172-31-93-76:/usr/local/src/new/ffmpeg/ffmpeg-php-0.6.0# ./configure --w ith-ffmpeg=/usr/local/src/new/ffmpeg/ffmpeg-php-0.6.0 --libdir=/usr/lib/x86_64- linux-gnu/ --enable-libavcodec --enable-shared --enable-libavutil --enable-libav format --enable-libavdevice --enable-libavfilter --enable-libavresample --enable -libswscale --enable-libswresample --enable-libpostproc
configure: WARNING: unrecognized options: --enable-libavcodec, --enable-libavuti l, --enable-libavformat, --enable-libavdevice, --enable-libavfilter, --enable-li bavresample, --enable-libswscale, --enable-libswresample, --enable-libpostproc
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20190902 -I/usr/include/php/2019 0902/main -I/usr/include/php/20190902/TSRM -I/usr/include/php/20190902/Zend -I/u sr/include/php/20190902/ext -I/usr/include/php/20190902/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20190902
checking for PHP installed headers prefix... /usr/include/php/20190902
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... gawk
checking for ffmpeg support... yes, shared
checking whether to force gd support in ffmpeg-php... no
checking for ffmpeg headers... ...found in /usr/local/include/ffmpeg
checking for ffmpeg libavcodec.so...
configure: error: ffmpeg shared libraries not found. Make sure ffmpeg is compile d as shared libraries using the --enable-shared option
=============
I have copied all the library files from my system library directory to the ffmpeg folder
========
root@ip-172-31-93-76:/ffmpeg-php-0.6.0# ll lib
libavcodec.a libavdevice.a libavfilter.a libavformat.a libavutil.a libswresample.a libswscale.a
libavcodec.so libavdevice.so libavfilter.so libavformat.so libavutil.so libswresample.so libswscale.so
libavcodec.so.58 libavdevice.so.58 libavfilter.so.7 libavformat.so.58 libavutil.so.56 libswresample.so.3 libswscale.so.5
libavcodec.so.58.54.100 libavdevice.so.58.8.100 libavfilter.so.7.57.100 libavformat.so.58.29.100 libavutil.so.56.31.100 libswresample.so.3.5.100 libswscale.so.5.5.100
========
But still it is showing that it cant find the libavcodec.so library files of ffmpeg.
Could you please assist me as soon as possible.