Partly solve

Marcel J.E. Mol marcel at mesa.nl
Sun Aug 12 22:37:11 CEST 2001


Hi,

I managed to get vlc working om my Inspiron 8000/Nvidia Geforce2 with
the Xvideo extension.
As said before the Ogle player worked fine using Xvideo. So I compared
how ogle and vlc use xvideo.
I don't know much about X programming and the Xvidoe extension but 
anyway this is what I saw and changed:
Apperantly xvideo allows for severla 'adaptors'. Now vlc just takes
the first one that matches with the wanted 'ImageFormat' (YUV12).
Ogle takes a different aproach and uses the last adaptor. 
Now it seems the nvidia card/driver has two adaptors. The first
one called "NV10 Video Overlay" and a second one called "NV05 Video Blitter".

So I changed vlc to also use the last one and voila, I get Xvideo!
Now the only problem there is I do not get subtitles...

The patch to vlc is quite simple. Again as I don;t now much on X/Xvideo
programming I don't know the impact on other parts of vlc.

--- vlc-0.2.82/plugins/x11/vout_xvideo.c        Fri Aug 10 01:13:32 2001
+++ vlc-0.2.82mm/plugins/x11/vout_xvideo.c      Sun Aug 12 22:21:07 2001
@@ -1194,7 +1194,7 @@
             return( -1 );
     }
 
-    for( i=0; i < i_adaptors && xv_port == -1; ++i )
+    for( i=0; i < i_adaptors ; ++i )
     {
         if( ( adaptor_info[ i ].type & XvInputMask ) &&
             ( adaptor_info[ i ].type & XvImageMask ) )
@@ -1206,7 +1209,7 @@
 
             imageFormats = XvListImageFormats( dpy, port, &i_num_formats );
 
-            for( i=0; i < i_num_formats && xv_port == -1; ++i )
+            for( i=0; i < i_num_formats; ++i )
             {
                 if( imageFormats[ i ].id == GUID_YUV12_PLANAR )
                 {


Anyone with some xvideo knowledge wold like to comment?

-Marcel
-- 
     ======--------         Marcel J.E. Mol                MESA Consulting B.V.
    =======---------        ph. +31-(0)6-54724868          P.O. Box 112
    =======---------        marcel at mesa.nl                 2630 AC  Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
 They couldn't think of a number, so they gave me a name!
                                -- Rupert Hine       http://www.ruperthine.com/





More information about the vlc mailing list