User Tools

Site Tools


mplayer_x264_from_latest_snapshot

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 :

gcc44 or gcc43

x264

git clone git://git.videolan.org/x264.git
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
./configure --extra-cflags="-mmmx -msse -msse2 -msse3 -I/usr/local/include -fPIC -DBROKEN_RELOCATIONS" --extra-ldflags="-L/usr/local/lib" --enable-shared --disable-asm

OR

./configure --extra-cflags="-DBROKEN_RELOCATIONS" --enable-shared --disable-asm
gmake CC=gcc43
gmake install

mplayer

svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
cd mplayer
svn update
/configure --enable-jpeg --enable-png --extra-cflags="-I/usr/local/include -DBROKEN_RELOCATIONS" --extra-ldflags=-L/usr/local/lib --disable-v4l2

OR

/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
gmake CC=gcc43
gmake install
ERROR no .so
gcc43 -shared x264.a  -Wl,-soname -Wl,libx264.so.o -o /usr/local/libx264.so.0
ERROR at pci.c
--- 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

ffmpeg

./configure --prefix=/usr/local/ --disable-indev=bktr --disable-indev=oss --disable-outdev=oss --enable-shared --arch=x86_64 --cpu=nocona

this will do it.

mplayer_x264_from_latest_snapshot.txt · Last modified: 2020/08/10 02:35 (external edit)