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

10 replies · 2,199 views · started 14 years ago · 1 min read

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.

4 participants
Harpreet Nona Munda Newbie · 6 posts #1

any one have a tutorial for How To Install FFMPEG on CentOS 5.x without cPanel server?

Harpreet Nona Munda Newbie · 6 posts #2

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

Sanju Kr Developer · 104 posts #4

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
Harpreet Nona Munda Newbie · 6 posts #5

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 Newbie · 6 posts #7

Sanju Kr wrote:

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'

Sanju Kr Developer · 104 posts #8

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close