Mesa 7.5-rc4 through [VD_FFMPEG] DRI failure on mplayer

Bug #395648 reported by Angel Guzman Maeso
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mesa (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am trying to play a stream video on mplayer, with my ATI Mobility Radeon X600 (r380), but when I use fullscreen or maximize the original window, mplayer show errors with DRI failure ([VD_FFMPEG] DRI failure) and the video turn to slow or stop and mplayer displays **** Your system is too SLOW to play this! ****.

The command for play the stream video (a online channel from Spain):
$ mplayer -vo gl2 -framedrop -cache 1192 -ao alsa -slave -prefer-ipv4 -nomouseinput -idle -nolirc http://195.10.10.103:80/rtve/24h.flv

Note: with -vo gl the same.

Example:

$ mplayer -vo gl2 -framedrop -cache 1192 -ao alsa -slave -prefer-ipv4 -nomouseinput -idle -nolirc http://195.10.10.103:80/rtve/24h.flv
MPlayer SVN-r29237-4.4.0 (C) 2000-2009 MPlayer Team

Playing http://195.10.10.103:80/rtve/24h.flv.
Connecting to server 195.10.10.103[195.10.10.103]: 80...
Cache size set to 1192 KBytes
Cache fill: 9.40% (114688 bytes)
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO: [VP6F] 384x288 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffvp6f] vfm: ffmpeg (FFmpeg VP6 Flash)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 22050 Hz, 2 ch, s16le, 48.0 kbit/6.80% (ratio: 6000->88200)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [alsa] 22050Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 384 x 288 (preferred colorspace: Planar YV12)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x8aeda0]using unscaled yuv420p -> bgr24 special converter
VO: [gl2] 384x288 => 384x288 BGR 24-bit
[gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
[gl2] antialiasing off
[gl2] bilinear linear
[VD_FFMPEG] DRI failure.V: 0.188 ct: 0.003 0/ 0 ??% ??% ??,?% 1 0 51%
A:290687.8 V:290687.5 A-V: 0.380 ct: 0.033 0/ 0 7% 92% 0.3% 58 0 51%

           ************************************************
           **** Your system is too SLOW to play this! ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

No bind found for key 'c'. 0 7% 89% 0.3% 98 0 46%
A:290691.6 V:290691.4 A-V: 0.229 ct: 0.029 0/ 0 6% 90% 0.3% 134 0 46%
Exiting... (Quit)

Other info:
$ uname -r
2.6.31-1-generic

$ glxinfo |grep version
server glx version string: 1.2
client glx version string: 1.4
GLX version: 1.2
OpenGL version string: 2.1 Mesa 7.5-rc4
OpenGL shading language version string: 1.20

glxinfo and xorg log attached. If you need more logs, only say it!

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
Revision history for this message
Bryce Harrington (bryce) wrote :

Hi shakaran,

Thanks for including the attached files. Could you also include your /var/log/Xorg.0.log (or Xorg.0.log.old) from after reproducing the issue?

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-xorglog
Changed in mesa (Ubuntu):
status: New → Incomplete
Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
Revision history for this message
Robert Hooker (sarvatt) wrote :

The problem is because linux 2.6.31-1 had radeon KMS enabled by default and the userspace can't support it so DRI was disabled completely unless you boot with radeon.modeset=0. This is fixed in linux 2.6.31-2 which should be available.

Changed in mesa (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Robert Hooker (sarvatt) wrote :

You can see it in the Xorg.0.log for future reference -

(EE) RADEON(0): [dri] RADEONDRIGetVersion failed because of a version mismatch.
[dri] radeon.o kernel module version is 2.0.0 but version 1.17.0 or newer is needed.
[dri] Disabling DRI.

radeon.o kernel module version 2.0.0 gets loaded when you boot with KMS and requires mesa 7.6 and libdrm-radeon1 to work with DRI, it uses the lower 1.x.x version when its disabled which works with mesa 7.5 and no libdrm-radeon1.

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :

Yeah! It rocks! 9500 frames!! Awesome!! Thanks a ton!
$ glxgears
9532 frames in 5.0 seconds
9585 frames in 5.0 seconds
9546 frames in 5.0 seconds
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
      after 103258 requests (94743 known processed) with 0 events remaining.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.