Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110048 - xine-lib and mplayer do not support the "unichrome" use flag for libviaXvMCPro.so
Summary: xine-lib and mplayer do not support the "unichrome" use flag for libviaXvMCPr...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-21 10:27 UTC by Keean Schupke
Modified: 2007-03-25 13:36 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keean Schupke 2005-10-21 10:27:10 UTC
See page:
http://gentoo-wiki.com/Unichrome

about unichrome support.

Requires either the masked ebuild (=x11-base/xorg-x11-6.8.99*) or a patch to the
current unmasked xorg. However unichrome support will not affect those users who
do not need it - so it should be safe to assume if the unichrome flag is set
users know what they are doing and will have made sure the relavent Xorg is
available... The following was executed on my machine:

  # equery belongs /usr/lib/libviaXvMCPro.so.1.0

  [ Searching for file(s) /usr/lib/libviaXvMCPro.so.1.0 in *... ]
  x11-base/xorg-x11-6.8.99.15-r4 (/usr/lib/libviaXvMCPro.so.1.0)


The only change required is 5 additional lines in the ebuild (for xine-lib)

        if use cle266; then
            count="`expr ${count} + 1`"
            xvmclib="viaXvMC"
        fi

+        if use unichrome; then
+            count="`expr ${count} + 1`"
+            xvmclib="viaXvMCPro"
+        fi
+
        if [[ "${count}" -gt "1" ]]; then

for mplayer the following needs to be added:

    ( use xvmc && use nvidia ) \
        && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCNVIDIA"

+    ( use xvmc && use unichrome ) \
+        && myconf="${myconf} --enable-xvmc --with-xvmclib=viaXvMCPro
--enable-xxmc --with-xxmclib=viaXvMCPro"
+
    ( use xvmc && use i8x0 ) \




Reproducible: Always
Steps to Reproduce:
1. emerge xine-lib or emerge mplayer
2.
3.

Actual Results:  
There is not xvmc or xxmc support in xine-lib or mplayer for the CN400
(unichrome) chipset.

Expected Results:  
Both mplayer and xine-lib support the unichrome chipset... they just need the
correct options to ./configure.
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-21 15:37:41 UTC
That will go in with a masked useflag if it requires 6.8.99.x.. but does it require some extra useflags 
(experimental, dri)? I don't have it on a normal version.
Comment 2 Keean Schupke 2005-10-22 00:30:53 UTC
Here's emerge -vp xorg-x11 on my system:

[ebuild   R   ] x11-base/xorg-x11-6.8.99.15-r4  -3dfx +bitmap-fonts -cjk -debug
-doc -font-server -insecure-drivers +ipv6 -minimal +nls -nocxx +opengl +pam -sdk
-static +truetype-fonts +type1-fonts (-uclibc) -xprint +xv 0 kB

maybe you need:

VIDEO_CARDS="via"

in the make.conf

Comment 3 Tony Murray 2005-10-27 20:46:27 UTC
Perhaps we should start using libXvMCW?  This is a wrapper lib which will try to
automatically load the right xvmc lib (nvidia,intel,via, etc).  If you would
like to tell it what lib to use you can do so in /etc/X11/XvMCConfig.

libXvMCW is included in the new x11-libs/libXvMC ebuild from xorg-x11 7.0.  This
could be install on systems with older versions of xorg I believe for compatability.

So all we would need then is
use xvmc && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCW --enable-xxmc
--with-xxmclib=XvMCW"

and it should support all libxvmcs out there... I haven't done any testing
though as mine is working right now.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-28 01:03:07 UTC
XvMCW is only present on masked Xorg, so for now is not possible to use it. 
You have to wait for now. 
Comment 5 MasterC 2006-09-26 22:46:02 UTC
(In reply to comment #4)
> XvMCW is only present on masked Xorg, so for now is not possible to use it. 
> You have to wait for now. 

Please update this as xorg is no longer masked ;)  Also, the VIDEO_CARDS=via option with xine-lib doesn't distinguish between Unichrome Pro and Unichrome and builds incorrectly.  Using the wrapper would be a perfect workaround for this because the user can point to the viaXvMCPro.so.1 library to correct for this.  If left as is, the viaXvMC.so library doesn't work for playing back on a Pro setup.

Thanks!

-Chad
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-09-26 22:55:29 UTC
Don't enable any VIDEO_CARD for xine-lib, and it will use the wrapper.

1.1.3_pre versions also don't use the specific libraries anymore and just XvMCW is used.
Latest mplayer also uses XvMCW.


Should we close this then?
Comment 7 MasterC 2006-09-26 23:25:18 UTC
(In reply to comment #6)
> Don't enable any VIDEO_CARD for xine-lib, and it will use the wrapper.

That's what I tried, but nothing changed...
Setting:
VIDEO_CARDS="" did nothing, commenting out the line in /etc/make.conf did nothing, it still showed (in emerge -pv) VIDEO_CARDS="via -nvidia -i810" when emerging xine-lib.

Thanks for the response though!

> Latest mplayer also uses XvMCW
Although that may be true, MPlayer needs to be patched to for unichrome Pro chipsets to actually work when using it.  The patch is available (though outdated at this point) over at:
http://openchrome.org
Specifically:
http://wiki.openchrome.org/tikiwiki/tiki-index.php?page=XvMC#Mplayer
Comment 8 Benno Schulenberg 2006-09-27 12:42:32 UTC
> Setting VIDEO_CARDS="" did nothing, commenting out the line in /etc/make.conf
> did nothing, it still showed (in emerge -pv) VIDEO_CARDS="via -nvidia -i810"
> when emerging xine-lib.

Hmm, yes, that's weird.  Here it shows VIDEO_CARDS="i810* via -nvidia" after commenting out VIDEO_CARDS in /etc/make.conf.  But when running 

   VIDEO_CARDS=""  emerge -pv xine-lib

it reports VIDEO_CARDS="-i810 -nvidia -via*".
Something is now quite right with Portage, it seems.
Comment 9 Karl H 2006-10-03 14:13:05 UTC
if we had VIDEO_CARDS="openchrome " it would make things easier to link xine to the correct lib.

See this:

http://bugs.gentoo.org/show_bug.cgi?id=147425
Comment 10 James M Leddy 2007-02-11 22:01:28 UTC
after doing some research it seems that mythtv and xine work out of the box, thoug I haven't tested xine yet.  The only thing that needs to be added is the patch to mplayer, possibly with the addition of a use flag 'openchrome'.
Comment 11 Steve Dibb (RETIRED) gentoo-dev 2007-03-25 13:36:31 UTC
(In reply to comment #3)
> Perhaps we should start using libXvMCW?  This is a wrapper lib which will try
> to
> automatically load the right xvmc lib (nvidia,intel,via, etc).  If you would
> like to tell it what lib to use you can do so in /etc/X11/XvMCConfig.
> 
> libXvMCW is included in the new x11-libs/libXvMC ebuild from xorg-x11 7.0. 
> This
> could be install on systems with older versions of xorg I believe for
> compatability.
> 
> So all we would need then is
> use xvmc && myconf="${myconf} --enable-xvmc --with-xvmclib=XvMCW --enable-xxmc
> --with-xxmclib=XvMCW"
> 
> and it should support all libxvmcs out there... I haven't done any testing
> though as mine is working right now.
> 

Which is pretty much what mplayer is doing.