Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2009 20:45:48 +0000
From:      Tom Evans <tevans.uk@googlemail.com>
To:        =?UTF-8?Q?Andrius_Mork=C5=ABnas?= <hinokind@gmail.com>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: mplayer SVN plays video too fast on FreeBSD
Message-ID:  <2e027be00912071245r1df3c421w611133d06c4d3239@mail.gmail.com>
In-Reply-To: <op.u4k2cv2b43o42p@klevas>
References:  <2e027be00912070613y5b3c4841tcd4d9ff58e1db330@mail.gmail.com> <2e027be00912071114t6a69b0a5vfdefea06e6ea9273@mail.gmail.com> <op.u4k2cv2b43o42p@klevas>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/12/7 Andrius Mork=C5=ABnas <hinokind@gmail.com>:
> On Mon, 07 Dec 2009 21:14:14 +0200, Tom Evans <tevans.uk@googlemail.com>
> wrote:
>>
>> I sent this to the mplayer mailing list earlier today, without
>> thinking that probably someone on multimedia@ has tried to compile
>> mplayer from svn. Has anyone succesfully managed to do it? - and get a
>> working player out of it!
>
> I've seen quite a lot of reports of working SVN mplayer on FreeBSD and I'=
ve
> yet to run into a version that doesn't build/work, but I don't update
> mplayer
> too often.
>
> My setup on amd64:
> $ svn diff
> Index: vidix/pci.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> --- vidix/pci.c (revision 29978)
> +++ vidix/pci.c (working copy)
> @@ -481,7 +481,7 @@
> =C2=A0#include "sysdep/pci_arm32.c"
> =C2=A0#elif defined(__powerpc__)
> =C2=A0#include "sysdep/pci_powerpc.c"
> -#elif defined(__x86_64__) || defined(__sh__)
> +#elif (defined(__x86_64__) || defined(__sh__)) && !defined(__FreeBSD__)
> =C2=A0/* Nothing here right now */
> =C2=A0#else
> =C2=A0#include "sysdep/pci_x86.c"
>
> $ cat build
> #!/bin/sh
> ./configure --extra-cflags=3D-DBROKEN_RELOCATIONS
> gmake -j2
>
> In case you just updated your drivers and compiled mplayer, you may want =
to
> restart FreeBSD, because I've had some issues (not similar to yours) unti=
l I
> restarted after installing xorg.
>
> Also, did you try building without infinity of configure args?
>
> --
> Andrius
>

Most of the changes in that diff are fbsd fixes - I'm a bit surprised
your mplayer works properly/efficiently without the bswap fix (it will
be using the naive C version). I'll try recompiling the whole package
with -DBROKEN_RELOCATIONS. I don't think the number of configure
options are affecting it, but I'll try a minimal version as well, just
to see.

Thanks

Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e027be00912071245r1df3c421w611133d06c4d3239>