[MPlayer-users] Compile MEncoder with x264 in libavcodec

Mark Himsley mark at mdsh.com
Tue May 6 16:22:50 CEST 2008


Reimar Döffinger wrote:
> On Mon, May 05, 2008 at 05:28:04PM +0100, Mark Himsley wrote:
>> I've been compiling Mplayer and MEncoder on Linux every now-and-then. I 
>> don't remember having to do anything too special to get x264 into 
>> libavcodec but currently ./configure --enable-menu results in:
>>
>> [SNIP]
>> Checking for x264 ... yes (in libavcodec: no)
>> [SNIP]
> 
> This is not happening for me, and after looking at the configure code I
> can't see how this can happen. Are you sure you have a proper configure
> and not some bad hacks in it?

doing an svn diff the only difference is a tweak to the man page I 
posted a while ago but has not got committed.

~/SVN/svn.mplayerhq.hu/mplayer$ svn diff
Index: DOCS/man/en/mplayer.1
===================================================================
--- DOCS/man/en/mplayer.1       (revision 26674)
+++ DOCS/man/en/mplayer.1       (working copy)

Honestly, I do a svn up, make distclean then ./configure --enable-menu 
and I get the above.

This is the section from configure.log

============ Checking for x264 ============

#include <inttypes.h>
#include <x264.h>
#if X264_BUILD < 53
#error We do not support old versions of x264. Get the latest from SVN.
#endif
int main(void) { x264_encoder_open((void*)0); return 0; }

cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native 
-mtune=native -pipe -ffast-math -fomit-frame-pointer         -lfaac -o 
/tmp/mplayer-conf--29898 /tmp/mplayer-conf--29898.c -lx264 -lpthread


Result is: yes (in libavcodec: no)
##########################################

x264 was configured with `./configure --enable-pthread --enable-shared` 
- which seemed fairly logical to me and was made and then installed.

-- 
Mark



More information about the MPlayer-users mailing list