[FFmpeg-user] ffmpeg video conversation command is not working

Moritz Barsnick barsnick at gmx.net
Fri Aug 26 13:48:35 EEST 2016


On Thu, Aug 25, 2016 at 11:05:03 +0530, Madhav G wrote:
> Hi ffmpeg team,

> DISCLAIMER:
> The information contained in this message (including any attachments) is
> confidential and may be privileged.

Is that so? Then I refuse to answer publicly. ;-)

> Kindly find the attachment for the error log that occur when we try to
> install ffmpeg 3.1.2, if any other details you need means kindly let us
> know.

> error: Failed dependencies:
>     libavcodec.so.55()(64bit) is needed by ffmpeg-2.2.1-65.el6.x86_64
>     libavcodec.so.55(LIBAVCODEC_55)(64bit) is needed by ffmpeg-2.2.1-65.el6.x86_64
[...]

ffmpeg-2.2.1 is most certainly not ffmpeg-3.1.2!

> Once these dependency resolved we get the below error while compiling ffmpeg-php

Once they are resolved, it is still not ffmpeg-3.1.2.

Anyway,

>   /bin/sh /usr/local/src/ffmpeg-php-0.6.0/libtool --mode=compile cc  -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/include/php/ext/date/lib -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
> libtool: compile:  cc -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/include/php/ext/date/lib -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:107,
>                  from /usr/include/php/main/php_streams.h:28,
>                  from /usr/include/php/main/php.h:406,
>                  from /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
> /usr/include/bits/stat.h:91: error: field ‘st_atim’ has incomplete type
> /usr/include/bits/stat.h:92: error: field ‘st_mtim’ has incomplete type
> /usr/include/bits/stat.h:93: error: field ‘st_ctim’ has incomplete type
> /usr/include/bits/stat.h:152: error: field ‘st_atim’ has incomplete type
> /usr/include/bits/stat.h:153: error: field ‘st_mtim’ has incomplete type
> /usr/include/bits/stat.h:154: error: field ‘st_ctim’ has incomplete type

That is most certainly an ffmpeg-php issue. Have you considered asking
their developers? ffmpeg-php is not maintained by ffmpeg.

> /usr/local/src/ffmpeg-php-0.6.0/ffmpeg-php.c:94: warning: implicit declaration of function ‘avcodec_init’

Considering that ffmpeg-php-0.6.0 is eight years old, it is most likely
incompatible with recent ffmpeg libraries. You need to find something
which supports current ffmpeg. (There's even a note an the ffmpeg wiki,
all the way at the bottom of this section:
https://trac.ffmpeg.org/wiki/PHP#WrapperLibraries)

Sorry,
Moritz


More information about the ffmpeg-user mailing list