The new 11.1 Radeon driver's out, I'll cover how my install went in this more suitable thread:
http://ubuntuforums.org/showthread.p...9#post10401979
The new 11.1 Radeon driver's out, I'll cover how my install went in this more suitable thread:
http://ubuntuforums.org/showthread.p...9#post10401979
install and run vainfo.
That determines if H264 accel is enabled.
Then you need to configure mplayer to use vaapi:
mplayer -vo vaapi -va vaapi filetoplay.mp4
Here's what I get from vainfo
libva: libva version 0.31.1-sds1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_openDriver() returns 0
vainfo: VA API version: 0.31
vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.7.8.pre1
vainfo: Supported profile and entrypoints
VAProfileH264High : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
I'm getting over 9000 fps in glx gears so the new Catalyst driver seems to be working. But VA-API? Not so much. I've tried going though the instructions on all of these pages, in order...
http://wiki.cchtml.com/index.php/Ubu...XPERIMENTAL.29
http://www.splitted-desktop.com/~gbeauchesne/libva/
http://www.splitted-desktop.com/~gbe...ne/xvba-video/
http://www.splitted-desktop.com/~gbe...mplayer-vaapi/ (also apparently patches ffmpeg)
The above links were the closest thing to best practices I could find online to get vaapi installed. And with some hiccups, things seemed to go in (eg; building mplayer complained about some 'yasm' compiler not being installed half way through, so I did an apt-get for yasm and tried again...)
Now, running a command like
Brings up the special version of mplayer but it's extremely flickery and picks and chooses what formats it wants to play.~/Downloads/mplayer-vaapi/mplayer -vo vaapi -va vaapi MOVIE.avi
Using the flag for GL
Results in a slew of errors that indicates video_out is broken~/Downloads/mplayer-vaapi/mplayer -vo vaapi:gl -va vaapi MOVIE.avi
So, I don't know... VLCPlayer still won't work with Hardware acceleration enabled. The FFMpeg patching doesn't seem to enable PiTiVi to play any video and there's no instructions on how to compile the gstreamer patch at http://www.splitted-desktop.com/~gbe...treamer-vaapi/MPlayer SVN-r32819-4.4.5 (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing 2007_AikidoClass.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
AVI: ODML: Building ODML index (2 superindexchunks).
Detected NON-INTERLEAVED AVI file format.
VIDEO: [] 320x240 24bpp 29.970 fps 54827.5 kbps (6692.8 kbyte/s)
Load subtitles in ./
[vo_vaapi] Using OpenGL rendering
libva: libva version 0.31.1-sds1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_openDriver() returns 0
================================================== ========================
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed
Opening video decoder: [raw] RAW Uncompressed Video
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Opening video filter: [flip]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x185a0a0] using unscaled bgr24 -> yuv420p special converter
VO: [vaapi] 320x240 => 320x240 Planar YV12
[vo_vaapi] vaCreateSurfaceGLX(): resource allocation failed
FATAL: Cannot initialize video driver.
VDecoder init failed
Opening video decoder: [raw] RAW Uncompressed Video
Opening video filter: [flip]
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 320x240 => 320x240 Planar YV12
mplayer: ../../src/xcb_io.c:452: _XReply: Assertion `!dpy->xcb->reply_data' failed.
MPlayer interrupted by signal 6 in module: init_video_codec
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
Maybe forcibly inserting this XFree86-DRI file into the system somewhere would help. But synaptic says libxxf86vm1 is already installed! Help, anyone please? I just want to play and edit video on this high end box I bought and it's making it very difficult
Perhaps you should try this new mplayer daily PPA:
https://launchpad.net/~motumedia/+archive/mplayer-daily
Also, what is in 2007_AikidoClass.avi?
This doesn’t look like an H.264 video at all. Video accel only works for H.264 on your card, as vainfo has told you.
And I haven’t used an ATI card before, but Xfree86 intuitively sounds wrong.
Are they building VAAPI support in now?
I got gstreamer-vaapi to compile btw by entering
before ./configureapt-get install libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
gstreamer-vaapi then installs okay but not video! For any container. Hopefully there's some simple thing tying all these issues together.
Okay, I tried this one instead which is h.264
That reulted in sound, but no video and a lot of this line repeated~/Downloads/mplayer-vaapi/mplayer -vo vaapi -va vaapi 2007_AikidoClass_h264.mov
[vo_vaapi] vaPutSurface(): resource allocation failed
xvba_video: XVBA_CreateGLSharedSurface(): status 11% 11% 0.1% 3 0
So I tried the GL flag as well and no dice...
MPlayer SVN-r32819-4.4.5 (C) 2000-2011 MPlayer Team~/Downloads/mplayer-vaapi/mplayer -vo vaapi:gl -va vaapi 2007_AikidoClass_h264.mov
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing 2007_AikidoClass_h264.mov.
libavformat file format detected.
[lavf] stream 0: audio (pcm_s16le), -aid 0, -alang eng
[lavf] stream 1: video (h264), -vid 0
VIDEO: [H264] 720x480 24bpp 24.000 fps 2030.2 kbps (247.8 kbyte/s)
Clip info:
major_brand: qt
minor_version: 537199360
compatible_brands: qt
creation_time: 2008-06-04 03:24:41
Load subtitles in ./
[vo_vaapi] Using OpenGL rendering
libva: libva version 0.31.1-sds1
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
Xlib: extension "XFree86-DRI" missing on display ":0.0".
libva: va_openDriver() returns 0
================================================== ========================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
[VD_FFMPEG] VA API accelerated codec.
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
================================================== ========================
================================================== ========================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
================================================== ========================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 720x480 => 720x480 H.264 VA-API Acceleration
[vo_vaapi] vaCreateSurfaceGLX(): resource allocation failed
FATAL: Cannot initialize video driver.
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=0.
Unsupported PixelFormat 61
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=2.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=3.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 720x480 => 720x480 Planar YV12
mplayer: ../../src/xcb_io.c:452: _XReply: Assertion `!dpy->xcb->reply_data' failed.
Oh well, got to head off to work, put in another night on this tonight I guess.
Go back to the beginning & go step by step.
vainfo tells you the video acceleration is not possible because dri module did not load.
Video decode is not GLX 3d.
Video presentation acc need dri loaded.
I don't know how ATI driver provides VA-API.
I'd come to this conclusion as well - the Catalyst driver only deals with 3D OpenGL, and to get gstreamer working properly eg; to use PiTiVi I'd need to install the VA-API 2D acceleration driver layer. That's not quite working yet.
So I'm not sure where the beginning is in this case but looking at our best guess so far as to the culprit
I'd Google the name of the driver and end up finding dispiriting threads like this one from a guy with the same problem back in 2007.Xlib: extension "XFree86-DRI" missing on display ":0.0".
It wasn't even clear what DRI was until I found the developer's website here
http://dri.freedesktop.org/wiki/ or is it here
http://www.x.org/wiki/ as 2D drivers were pushed upstream by the DRI project
So what does this mean? Should I consider a forced reinstall of Mesa? X? I think figuring out what package contains XFree86-DRI is probably my next step. I'm a former Windows user, dammit - please tell me what I should reinstall.
Sorry I don't know for ATI/AMD GPU.
Those other posters are the experts.
I just know it's broken.
Bookmarks