mplayer SVN plays video too fast on FreeBSD

Tom Evans tevans.uk at googlemail.com
Mon Dec 7 20:46:31 UTC 2009


2009/12/7 Andrius Morkūnas <hinokind at gmail.com>:
> On Mon, 07 Dec 2009 21:14:14 +0200, Tom Evans <tevans.uk at 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
> ===================================================================
> --- vidix/pci.c (revision 29978)
> +++ vidix/pci.c (working copy)
> @@ -481,7 +481,7 @@
>  #include "sysdep/pci_arm32.c"
>  #elif defined(__powerpc__)
>  #include "sysdep/pci_powerpc.c"
> -#elif defined(__x86_64__) || defined(__sh__)
> +#elif (defined(__x86_64__) || defined(__sh__)) && !defined(__FreeBSD__)
>  /* Nothing here right now */
>  #else
>  #include "sysdep/pci_x86.c"
>
> $ cat build
> #!/bin/sh
> ./configure --extra-cflags=-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) until 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


More information about the freebsd-multimedia mailing list