User Tools

Site Tools


mplayer_x264_from_latest_snapshot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mplayer_x264_from_latest_snapshot [2010/04/08 20:03] (current)
k2patel created
Line 1: Line 1:
 +====== MPlayer + x264 + FFMpeg from snapshot ======
  
 +This is too much time consuming compilation with many faliure.
 +following is the possible best way to succeed at once.
 +
 +==== Prequisite : ====
 +<code text>
 +gcc44 or gcc43
 +</​code>​
 +
 +==== x264 ====
 +<code bash>
 +git clone git://​git.videolan.org/​x264.git
 +</​code>​
 +<code bash>
 +wget -O x264.bsd.patch http://​lists.freebsd.org/​pipermail/​freebsd-multimedia/​attachments/​20090302/​602f1b22/​x264.bsd.obj
 +patch -p0 < x264.bsd.patch
 +cd x264
 +ln -s /​usr/​local/​bin/​bash /bin/bash
 +</​code>​
 +
 +<code bash>
 +./configure --extra-cflags="​-mmmx -msse -msse2 -msse3 -I/​usr/​local/​include -fPIC -DBROKEN_RELOCATIONS"​ --extra-ldflags="​-L/​usr/​local/​lib"​ --enable-shared --disable-asm
 +</​code>​
 +OR
 +<code bash>
 +./configure --extra-cflags="​-DBROKEN_RELOCATIONS"​ --enable-shared --disable-asm
 +</​code>​
 +<code bash>
 +gmake CC=gcc43
 +gmake install
 +</​code>​
 +
 +==== mplayer ====
 +
 +<code bash>
 +svn checkout svn://​svn.mplayerhq.hu/​mplayer/​trunk mplayer
 +</​code>​
 +<code bash>
 +cd mplayer
 +svn update
 +</​code>​
 +<code bash>
 +/configure --enable-jpeg --enable-png --extra-cflags="​-I/​usr/​local/​include -DBROKEN_RELOCATIONS"​ --extra-ldflags=-L/​usr/​local/​lib --disable-v4l2
 +</​code>​
 +OR
 +<code bash>
 +/configure --win32codecsdir=/​usr/​local/​lib/​win32 --enable-jpeg --enable-png --extra-cflags=-I/​usr/​local/​include --extra-ldflags=-L/​usr/​local/​lib --disable-v4l2 -CC=gcc43
 +</​code>​
 +<code bash>
 +gmake CC=gcc43
 +gmake install
 +</​code>​
 +
 +== ERROR no .so ==
 +
 +
 +<code bash>
 +gcc43 -shared x264.a ​ -Wl,-soname -Wl,​libx264.so.o -o /​usr/​local/​libx264.so.0
 +</​code>​
 +
 +
 +== ERROR at pci.c  ==
 +<code bash>
 +--- vidix/​pci.c.orig ​   2007-10-07 15:​49:​27.000000000 -0400
 ++++ vidix/pci.c 2007-11-14 03:​12:​26.000000000 -0500
 +@@ -484,8 +484,6 @@
 + #​include "​sysdep/​pci_arm32.c"​
 + #elif defined(__powerpc__)
 + #​include "​sysdep/​pci_powerpc.c"​
 +-#elif defined(__x86_64__)
 +-/* Nothing here right now */
 + #else
 + #​include "​sysdep/​pci_x86.c"​
 + #​endif
 +</​code>​
 +
 +
 +
 +==== ffmpeg ====
 +
 +<code bash>
 +./configure --prefix=/​usr/​local/​ --disable-indev=bktr --disable-indev=oss --disable-outdev=oss --enable-shared --arch=x86_64 --cpu=nocona
 +</​code>​
 +this will do it.
mplayer_x264_from_latest_snapshot.txt ยท Last modified: 2010/04/08 20:03 by k2patel