LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   compiling mplayer with x264 support (http://www.linuxquestions.org/questions/slackware-14/compiling-mplayer-with-x264-support-625483/)

/y0shi 03-03-2008 06:07 PM

compiling mplayer with x264 support
 
you might think this a much discussed topic with many solutions, but somehow I have the feeling this does not work so well on slackware 12.0.
Is it possible that one has to patch the source or something?

So my question is weather someone compiled mplayer with x264 support successfully.

I used http://www.mplayerhq.hu/DOCS/HTML/en...tml#codec-x264
If I do this exactly like there mplayer has no x264 support (http://h264enc.sf.net is saying that)

If I compile mplayer with --enable-x264 make failes with:

Code:

lfribidi -lz -llzo2 -lmad  -ltheora -logg  -lpthread -ldl -rdynamic  -lm 
mp_msg.o: In function `mp_msg':
mp_msg.c:(.text+0x2fc): undefined reference to `guiMessageBox'
command.o: In function `mp_property_fullscreen':
command.c:(.text+0x8d4): undefined reference to `guiGetEvent'
command.o: In function `run_command':
command.c:(.text+0x4fd3): undefined reference to `mplNext'
command.c:(.text+0x51d0): undefined reference to `guiGetEvent'
command.c:(.text+0x68d4): undefined reference to `mplPrev'
libvo/libvo.a(x11_common.o): In function `vo_x11_check_events':
x11_common.c:(.text+0x2fec): undefined reference to `guiGetEvent'
libvo/libvo.a(vo_x11.o): In function `config':
vo_x11.c:(.text+0xe88): undefined reference to `guiGetEvent'
libvo/libvo.a(vo_xover.o): In function `config':
vo_xover.c:(.text+0xcce): undefined reference to `guiGetEvent'
libvo/libvo.a(vo_xv.o): In function `config':
vo_xv.c:(.text+0x755): undefined reference to `guiGetEvent'
libvo/libvo.a(vo_gl.o): In function `config':
vo_gl.c:(.text+0x14a3): undefined reference to `guiGetEvent'
libvo/libvo.a(vo_gl2.o):vo_gl2.c:(.text+0x1e24): more undefined references to `guiGetEvent' follow
libavcodec/libavcodec.a(libx264.o): In function `X264_close':
libx264.c:(.text+0x1b): undefined reference to `x264_encoder_close'
libavcodec/libavcodec.a(libx264.o): In function `X264_init':
libx264.c:(.text+0x45): undefined reference to `x264_param_default'
libx264.c:(.text+0x3da): undefined reference to `x264_encoder_open'
libx264.c:(.text+0x52a): undefined reference to `x264_encoder_headers'
libx264.c:(.text+0x5d5): undefined reference to `x264_nal_encode'
libavcodec/libavcodec.a(libx264.o): In function `X264_frame':
libx264.c:(.text+0x722): undefined reference to `x264_encoder_encode'
libx264.c:(.text+0x77d): undefined reference to `x264_nal_encode'
collect2: ld gab 1 als Ende-Status zurück
make: *** [mplayer] Fehler 1

My first try was http://pastebin.com/m5da0e3d0 and that is actually what I want, but I tried to get more simple, but it still does not work ...

Any help is much appreciated.

y0shi

andrew.46 03-03-2008 09:01 PM

Hi,

Well, I have successfully compiled x264 support under Slackware 12. It is not difficult if you follow the mplayer directions.

1. First install x264. Slackbuilds.org has a nice script for this.
2. Next compile and install mplayer without a lot of those options that you are using:

Code:

./configure --prefix=/usr --enable-gui  --language=de
'enable' can make your life a bit difficult with mplayer, it will find x264 quite easily without it.

I could not quite understand what you were doing with dvd / css options, try without all these gymnastics and you may find that all is well :-)

Andrew

Edit: Looks like --enable-largefiles is required by rc2 but not svn.

/y0shi 03-04-2008 06:12 AM

Many Thanks for your help.

First I tried what you said with the slackbuild.org x264 and svn mplayer but with no sucess. It would build, but without x264 and faac support.

Than I thought before I come back here I try the MPlayer-1.0rc2 and with that it works! funny ...

Both said during configure:
Code:

Checking for x264 ... yes (in libavcodec: yes)
I never no weather mplayer uses some internal libs or external libdvdread for example ...

At the end it says libdvdread(internal) even though I have libdvdread installed ...

andrew.46 03-04-2008 03:12 PM

Hi,

Glad you have it partly sorted out!
Quote:

Originally Posted by /y0shi (Post 3077575)
I never no weather mplayer uses some internal libs or external libdvdread for example ...

At the end it says libdvdread(internal) even though I have libdvdread installed ...

Yhe internal dvd read works better than the external in my experience. Do not quote me but I believe that dvdread is getting a little rusty and the internal dvdread of mplayer represents a fork from this project although I am not sure of this. Anyone?

The only reason that I can think of to disable internal dvdread and dvdcss is if you wish to use the mplayer fork of dvdnav and in this case this is required to make it work.

Andrew

pdw_hu 03-04-2008 03:30 PM

It might not be the same case but I also got build errors around some x264 files. The solution was to add -fomit-frame-pointer to the config file, so gcc would use it.


All times are GMT -5. The time now is 09:46 AM.