[FFmpeg-user] Problems Compiling on CentOS 7

Larry Apolonio ffmpeg at apolonio.com
Sat Dec 29 09:50:55 EET 2018


I think I figured out why my pastebin was different from my original 
email.  Looks like I forgot to export the PKG_CONFIG_PATH variable 
before running configure again, so it is indeed misleading.

But thanks again, I was able to compile ffmpeg and compare it to a 
precompiled binary (nux I believe) on the Internet.

Take all this info with a grain of salt because these tests were 
certainly not in a highly controlled environment

On a Dell Optiplex with an Intel Core 2 Duo CPU E8400  @ 3.00GHz it  
took 32 minutes,

Same file, same parameters, but with the version compiled from source, 
it took 28 minutes.

I tried it again this time with nvenc on a Kepler based Quadro, took 
about 5 1/2 minutes.

For yucks I tried the precompiled rpm on a Workstation class box with an 
Intel Xeon CPU E31230 @ 3.20GHz and it took 12 minutes.

I will test it on a Pascal based Quadro as well, should be faster, not 
sure how much though.

Curious how long it will take on a Raspberry Pi B+ 3

Thanks again, this was fun in a weird academic way.

On 12/28/2018 3:25 PM, Larry Apolonio wrote:
> I have tried several things since my original post on the developer 
> mailing list.  So when Derek recommended I post something on pastebin, 
> I had to recreate the error because the original config.log was 
> overwritten.
>
> But your fix was spot on,
>
> I edited  /usr/local/include/x265.h using root
>
> and added struct
>
> typedef struct x265_zone
> {
>     int   startFrame, endFrame; /* range of frame numbers */
>     int   bForceQp;             /* whether to use qp vs bitrate factor */
>     int   qp;
>     float bitrateFactor;
> *struct* x265_param* zoneParam;
> } x265_zone;
>
> and was able do my configure make and make install.
>
> Thanks a bunch.  Hopefully they will fix it in git.  I will note it in 
> my document.
>
> LA
>
> On 12/28/2018 2:25 PM, Moritz Barsnick wrote:
>> On Fri, Dec 28, 2018 at 09:42:47 -0800, Larry Apolonio wrote:
>>> but I get an error when I add x265.
>>>
>>> ERROR: x265 not found using pkg-config
>>> Here is the tail end of the config.log file (pastebin if you want
>>> everythinghttps://pastebin.com/Vq8GFaui)
>>>
>>> BEGIN /tmp/ffconf.3qUgZlye/test.c
>>>       1   #include <x264.h>
>>>       2   #if !(X264_MPEG2)
>>>       3   #error "unsatisfied condition: X264_MPEG2"
>>>       4   #endif
>>> END /tmp/ffconf.3qUgZlye/test.c
>>> /usr/bin/gcc44 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64
>>> -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DPIC
>>> -std=c99 -fomit-frame-pointer -fPIC -pthread -I/usr/include/p11-kit-1
>>> -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/freetype2
>>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
>>> -I/usr/include/uuid -I/usr/include/libpng15 -I/usr/include/freetype2
>>> -I/usr/include/libpng15 -I/usr/include/openjpeg-2.3 -D_REENTRANT -E -o
>>> /tmp/ffconf.3qUgZlye/test.o /tmp/ffconf.3qUgZlye/test.c
>>> In file included from /tmp/ffconf.3qUgZlye/test.c:1:
>>> /usr/local/include/x264.h:40:4: warning: #warning You must include
>>> stdint.h or inttypes.h before x264.h
>>> /tmp/ffconf.3qUgZlye/test.c:3:2: error: #error "unsatisfied condition:
>>> X264_MPEG2"
>>> require_pkg_config libx265 x265 x265.h x265_api_get
>>> check_pkg_config libx265 x265 x265.h x265_api_get
>>> test_pkg_config libx265 x265 x265.h x265_api_get
>>> pkg-config --exists --print-errors x265
>>> Package x265 was not found in the pkg-config search path.
>>> Perhaps you should add the directory containing `x265.pc'
>>> to the PKG_CONFIG_PATH environment variable
>>> No package 'x265' found
>>> ERROR: x265 not found using pkg-config
>> This is extremely misleading! Your pastebin shows something totally
>> different:
>>
>>      require_pkg_config libx265 x265 x265.h x265_api_get
>>      check_pkg_config libx265 x265 x265.h x265_api_get
>>      test_pkg_config libx265 x265 x265.h x265_api_get
>>      pkg-config --exists --print-errors x265
>>      check_func_headers x265.h x265_api_get -I/usr/local/include 
>> -L/usr/local/lib -lx265
>>      test_ld cc -I/usr/local/include -L/usr/local/lib -lx265
>>      test_cc -I/usr/local/include -L/usr/local/lib
>>      BEGIN /tmp/ffconf.IEW25UfN/test.c
>>          1   #include <x265.h>
>>          2   #include <stdint.h>
>>          3   long check_x265_api_get(void) { return (long) 
>> x265_api_get; }
>>          4   int main(void) { int ret = 0;
>>          5    ret |= ((intptr_t)check_x265_api_get) & 0xFFFF;
>>          6   return ret; }
>>      END /tmp/ffconf.IEW25UfN/test.c
>>      /usr/bin/gcc44 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 
>> -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 
>> -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread 
>> -I/usr/include/p11-kit-1 -I/usr/include/harfbuzz 
>> -I/usr/include/fribidi -I/usr/include/freetype2 
>> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
>> -I/usr/include/uuid -I/usr/include/libpng15 -I/usr/include/freetype2 
>> -I/usr/include/libpng15 -I/usr/include/openjpeg-2.3 -D_REENTRANT 
>> -I/usr/local/include -I/usr/local/include -L/usr/local/lib -c -o 
>> /tmp/ffconf.IEW25UfN/test.o /tmp/ffconf.IEW25UfN/test.c
>>      In file included from /tmp/ffconf.IEW25UfN/test.c:1:
>>      /usr/local/include/x265.h:672: error: expected 
>> specifier-qualifier-list before 'x265_param'
>>      ERROR: x265 not found using pkg-config
>>
>> Which indicates that, unlike what you quoted, pkgconfig does work, but
>> ffmpeg's test code has an issue with 265.h. Incidentally with a line
>> which was changed/introduced 15 days ago.
>>
>> Two days ago, someone else noticed and filed an issue:
>> https://bitbucket.org/multicoreware/x265/issues/458/commit-56a73c8-added-invalid-c-to-x265h 
>>
>>
>> This hasn't been fixed in upstream x265. You can do that suggested
>> change to x265.h yourself (line 672, add the "struct " before 
>> "x265_param*
>> zoneParam").
>>
>> Please try that and tell us whether that works.
>>
>> (For once, "latest git" is not always best. Just saying.)
>>
>> Cheers,
>> Moritz
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-user-request at ffmpeg.org  with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list