We have already discussed about install FFmpeg on previous post. If you may get an error while installing FFmpeg 6.0 or 7.0 on CentOS,

ffmpeg-php-0.6.0# ./configure

Error :

included from /usr/include/sys/stat.h:107,
 from /usr/include/php/main/php_streams.h:28,
 from /usr/include/php/main/php.h:395,
 from /root/ffmpeg-php-0.6.0/ffmpeg-php.c:40:
                 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


Solution :

When you are configuring  ffmpeg-php-0.6.0 version  time.h file conflicting with CentOS time.h file, so download the FFmpeg updated version,

Following steps to install with latest one,
 
​# git clone https://github.com/tony2001/ffmpeg-php.git

# cd ffmpeg-php

# phpize

# ./configure

# make && make install

I hope your error has resolved!!!