LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-03-2008, 06:07 PM   #1
/y0shi
Member
 
Registered: Jan 2006
Location: berlin, germany
Distribution: slackware 12.0
Posts: 58

Rep: Reputation: 15
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
 
Old 03-03-2008, 09:01 PM   #2
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 643

Rep: Reputation: 90
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.

Last edited by andrew.46; 03-04-2008 at 01:14 AM.
 
Old 03-04-2008, 06:12 AM   #3
/y0shi
Member
 
Registered: Jan 2006
Location: berlin, germany
Distribution: slackware 12.0
Posts: 58

Original Poster
Rep: Reputation: 15
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 ...
 
Old 03-04-2008, 03:12 PM   #4
andrew.46
Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 643

Rep: Reputation: 90
Hi,

Glad you have it partly sorted out!
Quote:
Originally Posted by /y0shi View Post
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
 
Old 03-04-2008, 03:30 PM   #5
pdw_hu
Member
 
Registered: Nov 2005
Location: Budapest, Hungary
Distribution: Slackware, Gentoo
Posts: 346

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLC/mplayer can't play x264 HD-TV capture. large_satchell Linux - Software 1 02-06-2009 06:18 AM
FC6, after x264 update, mplayer won't start gnjunior Fedora 5 11-04-2006 04:58 PM
Compiling MPLAYER with win32 codec support. aenright Linux - Software 6 07-10-2006 08:53 AM
mplayer with x264 compile error jaykup Linux - Software 1 04-19-2006 02:22 PM
Cannot compile MPlayer 1.0pre7 with x264 support ginobili_mvp Linux - Software 3 12-04-2005 11:25 AM


All times are GMT -5. The time now is 04:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration