Problems Compiling on CentOS 7

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Problems Compiling on CentOS 7

Larry Apolonio
This is a repost from the ffmpeg-devel list, apologize in advance for
cross-posting, but was informed this would be the appropriate list to
post to

All,

I am trying to compile ffmpeg with x265 libs

Details of how I did it are here (without the x265 support)

https://www.apolonio.com/node/138

but I get an error when I add x265.

ERROR: x265 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
[hidden email] mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this
will help
solve the problem.

Here is the tail end of the config.log file (pastebin if you want
everything https://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

What is not in the document is how I installed x265, here is what I did

cd ~/src/ffmpeg

git clone https://github.com/videolan/x265.git

cd x265/build

cmake ../source/

make

sudo make install

It seems to install fine, I can run the command x265, and it did run
ldconfig prior to compiling ffmpeg, but I still get the error.

If I remove --enable-libx265 from the ./configure command, it does
complete with the following warnings

WARNING: using libx264 without pkg-config
WARNING: Building with deprecated library libavresample

and I am able to make and sudo make install ffmpeg and it does what
transcode some files like I need it to.

Any thoughts, pointers, is there more information I can provide?

Thanks,

Larry Apolonio



_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problems Compiling on CentOS 7

Moritz Barsnick
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
> everything https://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
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problems Compiling on CentOS 7

Larry Apolonio
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
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email]  with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problems Compiling on CentOS 7

Larry Apolonio
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
>> [hidden email]
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>> [hidden email]  with subject "unsubscribe".
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problems Compiling on CentOS 7

Carl Eugen Hoyos-2
2018-12-29 8:50 GMT+01:00, Larry Apolonio <[hidden email]>:

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

Just to avoid misunderstandings (gains >0.5% are unexpected):
Which precompiled version did you test against which compiled
version of FFmpeg (and x264 which you actually tested)?

> 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.

You could also compare with a current precompiled binary from
https://johnvansickle.com/ffmpeg/

Please avoid top-posting here, Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problems Compiling on CentOS 7

Larry Apolonio
On 12/29/2018 2:29 AM, Carl Eugen Hoyos wrote:

> 2018-12-29 8:50 GMT+01:00, Larry Apolonio <[hidden email]>:
>
>> But thanks again, I was able to compile ffmpeg and compare it to a
>> precompiled binary (nux I believe) on the Internet.
>
> Just to avoid misunderstandings (gains >0.5% are unexpected):
> Which precompiled version did you test against which compiled
> version of FFmpeg (and x264 which you actually tested)?
>
>> 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.
>
> You could also compare with a current precompiled binary from
> https://johnvansickle.com/ffmpeg/
>
> Please avoid top-posting here, Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> [hidden email]
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".
>

I reconfigured my mail client to bottom post.  I can see how it can get
annoying.

The instructions to install the precompiled version cam from

https://www.vultr.com/docs/how-to-install-ffmpeg-on-centos

The repository is

http://li.nux.ro/repos.html

Here is the x265 version
Name        : x264-libs
Version     : 0.142
Release     : 11.20141221git6a301b6.el7.nux
Architecture: x86_64
Install Date: (not installed)
Group       : Development/Libraries
Size        : 1909624
License     : GPLv2+
Signature   : RSA/SHA1, Fri 17 Jul 2015 04:27:42 AM PDT, Key ID
e98bfbe785c6cd8a
Source RPM  : x264-0.142-11.20141221git6a301b6.el7.nux.src.rpm
Build Date  : Fri 17 Jul 2015 01:54:24 AM PDT
Build Host  : rpmbuilder
Relocations : (not relocatable)
Packager    : http://li.nux.ro/
Vendor      : Nux!
URL         : http://developers.videolan.org/x264.html
Summary     : Library for encoding H264/AVC video streams
Description :
x264 is a free library for encoding H264/AVC video streams, written from
scratch.

Here is ffmpeg
Name        : ffmpeg
Version     : 2.8.15
Release     : 1.el7.nux
Architecture: x86_64
Install Date: (not installed)
Group       : Unspecified
Size        : 2093757
License     : GPLv3+
Signature   : RSA/SHA1, Tue 07 Aug 2018 07:06:27 AM PDT, Key ID
e98bfbe785c6cd8a
Source RPM  : ffmpeg-2.8.15-1.el7.nux.src.rpm
Build Date  : Tue 07 Aug 2018 06:51:30 AM PDT
Build Host  : rpmbuilder
Relocations : (not relocatable)
Packager    : http://li.nux.ro/
Vendor      : Nux!
URL         : http://ffmpeg.org/
Summary     : Digital VCR and streaming server
Description :
FFmpeg is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash.

Here are the compiled from source versions
$ /usr/local/bin/x264 --version
x264 0.157.2935 545de2f
built on Dec 28 2018, gcc: 4.8.5 20150623 (Red Hat 4.8.5-36)
x264 configuration: --chroma-format=all
libx264 configuration: --chroma-format=all
x264 license: GPL version 2 or later

$ /usr/local/bin/ffmpeg -version
ffmpeg version N-92833-gfccba32 Copyright (c) 2000-2018 the FFmpeg
developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-8)
configuration: --arch=x86_64 --optflags='-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
--extra-ldflags='-Wl,-z,relro ' --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3
--enable-bzlib --disable-crystalhd --enable-nvenc --enable-gnutls
--enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394
--disable-indev=jack --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-openal --enable-libopenjpeg
--enable-libpulse --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265
--enable-libxvid --enable-libxcb --enable-avfilter --enable-avresample
--enable-postproc --enable-pthreads --enable-static --disable-shared
--enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64
--enable-runtime-cpudetect --cc=/usr/bin/gcc44
libavutil      56. 25.100 / 56. 25.100
libavcodec     58. 42.104 / 58. 42.104
libavformat    58. 25.100 / 58. 25.100
libavdevice    58.  6.101 / 58.  6.101
libavfilter     7. 46.101 /  7. 46.101
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  4.100 /  5.  4.100
libswresample   3.  4.100 /  3.  4.100
libpostproc    55.  4.100 / 55.  4.100


Will take a look at the johnvansickle versions as well.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Problems Compiling on CentOS 7

Carl Eugen Hoyos-2
2018-12-29 16:46 GMT+01:00, Larry Apolonio <[hidden email]>:

> $ /usr/local/bin/ffmpeg -version
> ffmpeg version N-92833-gfccba32 Copyright (c) 2000-2018
> the FFmpeg developers

I expect current precompiled binaries to be faster than this one.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".