And me again,
I tried that now, setting CFLAGS/CXXFLAGS/LDFLAGS to "-I/usr/local/include
-L/usr/local/lib", and then linking the current x264 release against OpenBSDs
ffmpeg
package, but it makes no difference. x264's config.log says:
checking for sws_init_context(0,0,0); in libswscale/swscale.h... yes
checking whether defined(AV_PIX_FMT_FLAG_RGB) is true... no
--------------------------------------------------
conftext.c:3:2: error: #error
--------------------------------------------------
Failed program was:
--------------------------------------------------
#include <libavutil/pixdesc.h>
#if !(defined(AV_PIX_FMT_FLAG_RGB))
#error
#endif
--------------------------------------------------
Also, I made sure that I was using GCC 4.2.1 and not the newer 4.8.1 here, so
that x264
and OpenBSDs ffmpeg would "fit together". No go.
When linking against my homebrewn libav (or ffmpeg!) it would just say this:
checking whether defined(AV_PIX_FMT_FLAG_RGB) is true... yes
And it works. I presume this has something to do with the age difference, as OpenBSDs
ffmpeg and my x264 are almost a year apart, and that's usually too much to have them link
against each other as by my previous experience. Maybe it's also because of the
way ffmpeg
was built and linked against libx264? It seems the OpenBSD solution (which
reminds me of
Debian Linux btw., which does it the same way) encourages the user to run the
ffmpeg cli
binary instead of using the x264 cli binary.
I guess this is just the way most people do it. Use libx264 to encode H.264 by
calling the
ffmpeg binary and its libs to do the decoding part.
The way I do it: I'm using the ffmpeg or libav libraries to do the decoding,
and the x264
binary to do the encoding. Either way, my problem can be solved, and now I know
how
anyway. :)
On 03/27/2014 09:17 AM, Stuart Henderson wrote:
On 2014-03-26, Michael Lackner <michael.lack...@unileoben.ac.at> wrote:
As for the other posts: Installing ffmpeg as a package can be done, but x264
would refuse
to link against it.
Could that be something as simple as needing to include -L/usr/local/lib
in LDFLAGS when configuring x264?
--
Michael Lackner
Lehrstuhl für Informationstechnologie (CiT)
Montanuniversität Leoben
Tel.: +43 (0)3842/402-1505 | Mail: michael.lack...@unileoben.ac.at
Fax.: +43 (0)3842/402-1502 | Web: http://institute.unileoben.ac.at/infotech