any one have a tutorial for How To Install FFMPEG on CentOS 5.x without cPanel server?
How To Install FFMPEG on CentOS 5.x without cPanel server
Started on the old forum in November 2012 · view the original in the archive · old links redirect here
TL;DR · summary of 10 replies
- Harpreet Nonda Munda asked how to install FFMPEG on CentOS 5.x without a cPanel server.
- The error message /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function 'avcodec_init' was mentioned, suggesting the installation process might be incomplete or incorrect.
- Sanju Kr suggested changing commas to dots and vice versa in the code when copying pasting into Putty, which could resolve a specific error related to FFMPEG's initialization.
- ReazulIqbal recommended trying Webmin for managing servers without cPanel.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
get this error
/bin/sh /usr/local/src/ffmpeg-php-0.6.0/libtool --mode=compile gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o In file included from /usr/include/sys/stat.h:105, from /usr/include/php/main/php_streams.h:28, from /usr/include/php/main/php.h:399, from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40: /usr/include/bits/stat.h:88: error: field 'st_atim' has incomplete type /usr/include/bits/stat.h:89: error: field 'st_mtim' has incomplete type /usr/include/bits/stat.h:90: error: field 'st_ctim' has incomplete type /usr/include/bits/stat.h:149: error: field 'st_atim' has incomplete type /usr/include/bits/stat.h:150: error: field 'st_mtim' has incomplete type /usr/include/bits/stat.h:151: error: field 'st_ctim' has incomplete type In file included from /usr/include/php/main/php.h:405, from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40: /usr/include/php/TSRM/tsrm_virtual_cwd.h:192: error: expected specifier-qualifier-list before 'time_t' /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg': /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function 'avcodec_init' make: *** [ffmpeg-php.lo] Error 1
on which control panel kloxo , directAdmin or... ?
Free Web Hosting @HostersPoint.com php Hosting with Web Builder
Buy - Sell ADs ADMOLA ADs Network Monetize Your Site Traffic
Harpreet Nona Munda wrote: /bin/sh /usr/local/src/ffmpeg-php-0.6.0/libtool --mode=compile gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c -o ffmpeg-php.lo gcc -I. -I/usr/local/src/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/local/src/ffmpeg-php-0.6.0/include -I/usr/local/src/ffmpeg-php-0.6.0/main -I/usr/local/src/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/local/include/libavcodec/ -I/usr/local/include/libavformat/ -I/usr/local/include/libavutil/ -I/usr/local/include/libswscale/ -I/usr/local/include/libavfilter/ -I/usr/local/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c -fPIC -DPIC -o .libs/ffmpeg-php.o In file included from /usr/include/sys/stat.h:105, from /usr/include/php/main/php_streams.h:28, from /usr/include/php/main/php.h:399, from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40: /usr/include/bits/stat.h:88: error: field 'st_atim' has incomplete type /usr/include/bits/stat.h:89: error: field 'st_mtim' has incomplete type /usr/include/bits/stat.h:90: error: field 'st_ctim' has incomplete type /usr/include/bits/stat.h:149: error: field 'st_atim' has incomplete type /usr/include/bits/stat.h:150: error: field 'st_mtim' has incomplete type /usr/include/bits/stat.h:151: error: field 'st_ctim' has incomplete type In file included from /usr/include/php/main/php.h:405, from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40: /usr/include/php/TSRM/tsrm_virtual_cwd.h:192: error: expected specifier-qualifier-list before 'time_t' /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c: In function 'zm_startup_ffmpeg': /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function 'avcodec_init' make: *** [ffmpeg-php.lo] Error 1
yum clean all
yum update
wget [url]http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2[/url]
tar xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0
sed -i ‘s/PIX_FMT_RGBA32/PIX_FMT_RGB32/g’ ffmpeg_frame.c
phpize
./configure
make
make install
no any cpanel
irfiii wrote: on which control panel kloxo , directAdmin or... ?
i cant use any cpanel or webmin i wil install lnmp in my server
Harpreet Nona Munda wrote: i cant use any cpanel or webmin i wil install lnmp in my server
y u cant use any panel?
yum clean all yum update wget http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2 tar xjf ffmpeg-php-0.6.0.tbz2 cd ffmpeg-php-0.6.0 sed -i ‘s/PIX_FMT_RGBA32/PIX_FMT_RGB32/g’ ffmpeg_frame.c phpize ./configure make make install
yeah i will try to solve error PIx_FMT_RHBA32
but its again show me this error
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function 'avcodec_init'
Harpreet Nona Munda wrote: yeah i will try to solve error PIx_FMT_RHBA32
but its again show me this error
/usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function 'avcodec_init'
when you copy paste "comas" change into dots, you must ensure that when you copy paste in putty, converted comas(dots) must back to comas
Harpreet Nona Munda wrote: i have no money for this
You can also try kloxo its free. lxcenter.org