From Bugzilla Helper: User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.4.2 i686) Reproducible: Always Steps to Reproduce: 1. try to watch a mpeg-1 or mpeg-2 movie with xine or xmovie 2. if the player is using xvideo for playback, the movie won't play and the player exits 3. Configuration: 3dfx Voodoo3 2000 PCI RedHat 7.0 with XFree86-4.0.2 taken from Wolverine 2.4.2 kernel (SMP) This is what xine tells: This is xine - a mpeg 1, 2 player v0.3.7 - (c) 2000 by G. Bartsch. testing for audio driver: oss <-(successfully initialized) Using oss audio output driver. !! no port attributes defined found yv12 format video_out_xv: using Xvideo port 74 for hw scaling *** Settings: ***************** Using X Window System video extension for video output. set_image_format_xv(): width=720, height=405, ratio=3 scaled picture size : 720 x 405 (corr_factor: 0.999323) shared memory error: Invalid argument error when allocating image And this is what xvinfo tells: X-Video Extension version 2.2 screen #0 Adaptor #0: "3dfx Accelerated Video Engine" number of ports: 1 port base: 74 operations supported: PutImage supported visuals: depth 16, visualID 0x23 depth 16, visualID 0x24 depth 16, visualID 0x25 depth 16, visualID 0x26 depth 16, visualID 0x27 depth 16, visualID 0x28 depth 16, visualID 0x29 depth 16, visualID 0x2a depth 16, visualID 0x2b depth 16, visualID 0x2c depth 16, visualID 0x2d depth 16, visualID 0x2e depth 16, visualID 0x2f depth 16, visualID 0x30 depth 16, visualID 0x31 depth 16, visualID 0x32 no port attributes defined maximum XvImage size: 1024 x 0 Number of image formats: 2 id: 0x32315659 (YV12) guid: 59563132-0000-0010-8000-00aa00389b71 bits per pixel: 12 number of planes: 3 type: YUV (planar) id: 0x30323449 (I420) guid: 49343230-0000-0010-8000-00aa00389b71 bits per pixel: 12 number of planes: 3 type: YUV (planar)
You've filed a bug report against XFree86-Servers-3.3.6, and have mentioned 4.0.2 in the text. If this is a 4.0.2 problem, please change the component to XFree86 proper. If it is 3.3.6, please indicate so clearly below... Also, please try to reproduce on a full install of Wolverine as I do not have hardware to verify or test with. There are new packages in Rawhide which might help also.
I've changed the component to XFree86. This is a 4.0.2 bug. I tried the new packages from Rawhide, but the problem persists. Xine will play movies if it's told to use X shared memory extension for playback.
Try disabling DRI. If that doesn't work, please include your X server logs and config file via the file attach link below.
I just installed XFree86-4.0.3 packages from rawhide, but the problem is still there. I have also downloaded and compiled the DRI source from http://dri.sourceforge.net/ I downloaded the source from their CVS about three weeks ago. This version is working fine. I keep the different installations in different directories, so the switching between them is easy.
Verified this at home, doesn't work with or without DRI. XF86Config and logs will follow (when I'm at home).
Logs and config? ;o)
*** Bug 34734 has been marked as a duplicate of this bug. ***
In doing some testing of 7.1 BETA it seems the same problem is present in the current builds as of 04/05. Attached are my XFree86.log and XFree86-4 config files.
Created attachment 14725 [details] XFree86 Log File from XFree86-4.0.3-5
Created attachment 14726 [details] XFree86 config file from XFree86-4.0.3-5
Created attachment 14731 [details] XFree86 log file for the non-working version
Created attachment 14732 [details] XFree86 log file for the working version
Created attachment 14733 [details] XF86config-4 for the working and non-working versions
Ok, finally attaching some logs (hope it doesn't fail again): - X server (just the not working case) - XF86Config-4 - xvinfo - xine - strace of xine - interleaved xine + strace of xine
Created attachment 14823 [details] Nils' XFree86.0.log
Created attachment 14824 [details] Nils' XF86Config-4
Created attachment 14825 [details] Output of xvinfo
Created attachment 14826 [details] Output of xine
Created attachment 14827 [details] strace of xine
Created attachment 14828 [details] Interleaved output and strace of xine
What's notable is that xvinfo reports a maximum XvImage size of 1024x0 pixels, can't possibly work, can it? Mine is XFree86-4.0.3-5 as well.
I have asked upstream about this problem and am awaiting a response from the XFree86 and DRI development groups.
The problem seems not to affect the current DRI Development Builds (at dri.sourceforge.net). XVideo works fine for my Voodoo 3 2000 AGP and AVILib also uses hardware acceleration. But their X server (development 4.0.0, as I can remember) is not very stable, I would not recommend to use it. I think that the DRI group should know the reason why XVideo is not working in the 4.0.3 server (may be the XVideo tree for 3Dfx has not been merged to the current XFree86 4.0.3 release).
This problem has been resolved in X4.1.0, as confirmed by bugfix #621 in http://www.xfree86.org/cvs/changes_4_1.html . I had the same problem with X4.0.3 but with X4.1.0 I am getting great acceleration. Now my xvinfo looks like: X-Video Extension version 2.2 screen #0 Adaptor #0: "3dfx Video Overlay" number of ports: 1 port base: 46 operations supported: PutImage supported visuals: depth 24, visualID 0x23 depth 24, visualID 0x24 depth 24, visualID 0x25 depth 24, visualID 0x26 number of attributes: 2 "XV_COLORKEY" (range 0 to 16777215) client settable attribute client gettable attribute (current value is 30) "XV_FILTER_QUALITY" (range 0 to 1) client settable attribute client gettable attribute (current value is 1) maximum XvImage size: 2048 x 2048 Number of image formats: 4 id: 0x32595559 (YUY2) guid: 59555932-0000-0010-8000-00aa00389b71 bits per pixel: 16 number of planes: 1 type: YUV (packed) id: 0x59565955 (UYVY) guid: 55595659-0000-0010-8000-00aa00389b71 bits per pixel: 16 number of planes: 1 type: YUV (packed) id: 0x32315659 (YV12) guid: 59563132-0000-0010-8000-00aa00389b71 bits per pixel: 12 number of planes: 3 type: YUV (planar) id: 0x30323449 (I420) guid: 49343230-0000-0010-8000-00aa00389b71 bits per pixel: 12 number of planes: 3 type: YUV (planar)
Confirmed fixed in 4.1.0-0.9.11 in rawhide.