Discussion:
Mplayer SVN or linux-mplayer
(too old to reply)
ruin evil
2009-09-27 14:33:16 UTC
Permalink
Paul B. Mahol said:

"why not use svn mplayer?"

How do you install svn mplayer? Does someone have a tarball of the port(s)
that I can drop in, and a list of options to avoid because they prevent
compilation?

Also has anyone tried to use mplayer under the linux compatibility layer?

-ruinevil
Henry Hu
2009-09-27 15:22:27 UTC
Permalink
Post by ruin evil
"why not use svn mplayer?"
How do you install svn mplayer? Does someone have a tarball of the port(s)
that I can drop in, and a list of options to avoid because they prevent
compilation?
You just need to checkout it from svn:
svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer
and the only configure argument I used is --disable-v4l2, since the
configure would enable v4l2, but the compilation process would stop
with error.
Maybe CFLAGS=-I/usr/local/include and LDFLAGS=-L/usr/local/lib are
also needed, as once they are required.
Post by ruin evil
Also has anyone tried to use mplayer under the linux compatibility layer?
-ruinevil
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
Henry
ruin evil
2009-09-27 17:17:20 UTC
Permalink
Doesn't appear to work on AMD64. Some assembly error.

cc -DHAVE_AV_CONFIG_H -I.. -I.. -Wundef -Wdisabled-optimization
-Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE64_SOURCE -Ilibdvdread4 -I. -I/usr/local/include -D_THREAD_SAFE
-I/usr/X11R6/include -I/usr/local/include/ -I/usr/local/include/SDL
-I/usr/local/include -D_REENTRANT -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/include
-I/usr/local/include/fribidi -I/usr/local/include -I/usr/local/include
-c -o h264.o
h264.c

In file included from
h264.c:42:

x86/h264_i386.h: In function
'decode_significance_x86':

x86/h264_i386.h:41: warning: cast from pointer to integer of different
size

x86/h264_i386.h:42: warning: cast from pointer to integer of different
size

x86/h264_i386.h: In function
'decode_significance_8x8_x86':

x86/h264_i386.h:94: warning: cast from pointer to integer of different
size

h264.c: In function
'pred_direct_motion':

h264.c:1048: warning: assignment from incompatible pointer
type

h264.c:1049: warning: assignment from incompatible pointer
type

h264.c: In function
'filter_mb_dir':

h264.c:6351: warning: initialization from incompatible pointer
type

h264.c:6352: warning: initialization from incompatible pointer
type

/var/tmp//ccu6Kck4.s: Assembler
messages:

/var/tmp//ccu6Kck4.s:69: Error: `ff_h264_lps_range(%eax,%esi,2)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:79: Error: `ff_h264_norm_shift(%esi)' is not a valid 64
bit base/index
expression
/var/tmp//ccu6Kck4.s:81: Error: `ff_h264_mlps_state+128(%eax)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:93: Error: `-1(%ebx)' is not a valid 64 bit base/index
expression

/var/tmp//ccu6Kck4.s:96: Error: `ff_h264_norm_shift(%ecx)' is not a valid 64
bit base/index
expression
/var/tmp//ccu6Kck4.s:139: Error: `ff_h264_lps_range(%eax,%esi,2)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:149: Error: `ff_h264_norm_shift(%esi)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:151: Error: `ff_h264_mlps_state+128(%eax)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:163: Error: `-1(%ebx)' is not a valid 64 bit base/index
expression

/var/tmp//ccu6Kck4.s:166: Error: `ff_h264_norm_shift(%ecx)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7098: Error: `ff_h264_lps_range(%edx,%esi,2)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7108: Error: `ff_h264_norm_shift(%esi)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7110: Error: `ff_h264_mlps_state+128(%edx)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7122: Error: `-1(%ebx)' is not a valid 64 bit
base/index
expression

/var/tmp//ccu6Kck4.s:7125: Error: `ff_h264_norm_shift(%ecx)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7136: Error: `ff_h264_lps_range(%edx,%esi,2)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7146: Error: `ff_h264_norm_shift(%esi)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7148: Error: `ff_h264_mlps_state+128(%edx)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7160: Error: `-1(%ebx)' is not a valid 64 bit
base/index
expression

/var/tmp//ccu6Kck4.s:7163: Error: `ff_h264_norm_shift(%ecx)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7234: Error: `ff_h264_lps_range(%edx,%esi,2)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7244: Error: `ff_h264_norm_shift(%esi)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7246: Error: `ff_h264_mlps_state+128(%edx)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7258: Error: `-1(%ebx)' is not a valid 64 bit
base/index
expression

/var/tmp//ccu6Kck4.s:7261: Error: `ff_h264_norm_shift(%ecx)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7270: Error: `last_coeff_flag_offset_8x8(%edi)' is not
a valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7275: Error: `ff_h264_lps_range(%edx,%esi,2)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7285: Error: `ff_h264_norm_shift(%esi)' is not a valid
64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7287: Error: `ff_h264_mlps_state+128(%edx)' is not a
valid 64 bit base/index
expression
/var/tmp//ccu6Kck4.s:7299: Error: `-1(%ebx)' is not a valid 64 bit
base/index
expression

/var/tmp//ccu6Kck4.s:7302: Error: `ff_h264_norm_shift(%ecx)' is not a valid
64 bit base/index
expression
gmake[1]: *** [h264.o] Error
1

gmake[1]: Leaving directory
`/root/mplayer/libavcodec'

gmake: *** [libavcodec/libavcodec.a] Error
2

Oh well.
Post by ruin evil
Post by ruin evil
"why not use svn mplayer?"
How do you install svn mplayer? Does someone have a tarball of the
port(s)
Post by ruin evil
that I can drop in, and a list of options to avoid because they prevent
compilation?
svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer
and the only configure argument I used is --disable-v4l2, since the
configure would enable v4l2, but the compilation process would stop
with error.
Maybe CFLAGS=-I/usr/local/include and LDFLAGS=-L/usr/local/lib are
also needed, as once they are required.
Post by ruin evil
Also has anyone tried to use mplayer under the linux compatibility layer?
-ruinevil
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to "
Henry
Andrius Morkūnas
2009-09-27 18:52:58 UTC
Permalink
Post by ruin evil
Doesn't appear to work on AMD64. Some assembly error.
You need to compile h264.c with -DBROKEN_RELOCATIONS.

Here's what works for me:

$ svn diff
Index: vidix/pci.c
===================================================================
--- vidix/pci.c (revision 29723)
+++ vidix/pci.c (working copy)
@@ -481,8 +481,6 @@
#include "sysdep/pci_arm32.c"
#elif defined(__powerpc__)
#include "sysdep/pci_powerpc.c"
-#elif defined(__x86_64__) || defined(__sh__)
-/* Nothing here right now */
#else
#include "sysdep/pci_x86.c"
#endif


./configure --extra-cflags=-DBROKEN_RELOCATIONS

vidix/pci.c is modified like in a patch in original mplayer port.
--
Andrius
Matthias Apitz
2009-09-28 05:14:20 UTC
Permalink
Post by Henry Hu
Post by ruin evil
"why not use svn mplayer?"
How do you install svn mplayer? Does someone have a tarball of the port(s)
that I can drop in, and a list of options to avoid because they prevent
compilation?
svn co svn://svn.mplayerhq.hu/mplayer/trunk mplayer
and the only configure argument I used is --disable-v4l2, since the
configure would enable v4l2, but the compilation process would stop
with error.
Maybe CFLAGS=-I/usr/local/include and LDFLAGS=-L/usr/local/lib are
also needed, as once they are required.
I have compiled mlayer from SVN without any args for ./configure; it
compiles and installs fine on 8-CURRENT x86 (but can't crack the DVD
I wanted to see either).

matthias
--
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <***@unixarea.de> - w http://www.unixarea.de/
People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD.
Loading...