Fedora Linux Support Community & Resources Center
  #1  
Old 12th November 2012, 06:56 PM
OlivFedora Offline
Registered User
 
Join Date: Oct 2010
Posts: 34
linuxfirefox
VA API / video decoding on Ivy Bridge and Fedora 17

Hello,

since I read for the first about the magic VAAPI that allow the brand new intel CPU/GPU to do accelerated video decoding I was always wondering if my own system was able to do it.

As Intel is the main provider of CPUs it seemed to me that it should be included by default... but it seems it's not...

What I did and saw :
1) yum info libva.x86_64
[...]
Description : Libva is a library providing the VA API video acceleration API.
=> Cool, it looks like I have hardware video acceleration !!!

2) yum install libva-utils
[root@azerty ~]# vainfo
libva: VA-API version 0.32.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/dri/i965_drv_video.so
libva: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit

=> NOT COOL, it looks like in fact I don't have HW video acceleration...

3) yum install libva-intel-driver

[root@azerty ~]# vainfo
libva: VA-API version 0.32.1
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/dri/i965_drv_video.so
libva: va_openDriver() returns 0
vainfo: VA-API version: 0.32 (libva 1.0.16)
vainfo: Driver version: Intel i965 driver - 1.0.18
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointVLD
VAProfileH264Baseline : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD

=> Wunderbar ! I have some kind of hardware video acceleration !!!!

But do I ??
I dont' understand, who does what here ? what is "libva" if it doesn't have HW VA ??

And to add some confusion :
https://bugzilla.redhat.com/show_bug.cgi?id=770371
... backend ? frontend ? reading the comments it seems that doesn't exactly do HW VA, am I right ? so what does it do ? why vainfo works after installing it ???

---------- Post added at 02:56 AM ---------- Previous post was at 02:25 AM ----------

I tried with vlc...
vlc -v
=> without libva-intel-driver
[...]
libva: VA-API version 0.32.1
[0x7f604cc03f58] faad decoder warning: decoded zero sample
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/dri/i965_drv_video.so
libva: va_openDriver() returns -1
[0x7f604cc0fb08] avcodec decoder warning: Failed to open VA API
[0x7f604cc0fb08] avcodec decoder warning: disabling direct rendering

=> with libva-intel-driver
[...]
libva: VA-API version 0.32.1
[0x7f7f14c03ec8] faad decoder warning: decoded zero sample
libva: va_getDriverName() returns 0
libva: Trying to open /usr/lib64/dri/i965_drv_video.so
libva: va_openDriver() returns 0
[0x7f7f14c0bc38] avcodec decoder: Using VA API version 0.32 for hardware decoding.


Obviously it's needed to get HW video decoding (at least for VLC).

I find it quite strange that in the usual 'fedora guide/tutorial' it's not explained...
__________________
~~ Fedora 17 - 64 bits
~~ 10 Gb
~~ CPU: i7-3517U

Last edited by OlivFedora; 13th November 2012 at 09:11 AM.
Reply With Quote
  #2  
Old 12th November 2012, 08:38 PM
David Batson Offline
Registered User
 
Join Date: Jul 2009
Posts: 1,234
windows_7opera
Re: VA API / video decoding on Ivy Bridge and Fedora 17

I think the problem is with VLC and the ffmpeg plugin not supporting hw decoding unless they have been specifically compiled to use it. AFAIK, Fedora's versions are not compiled to support hw decoding.

http://wiki.videolan.org/VLC_VAAPI

You might be able to get mplayer to work with hardware decoding if you get the version that is compiled to use it. I had it working before, but I just use VLC now. I find that VLC video works fine (no tearing) if vsync is turned on and compositing is working correctly. This is on a Sandybridge laptop.

See also:
https://bugzilla.gnome.org/show_bug.cgi?id=657071#c2
I've pasted CLUTTER_PAINT=disable-clipped-redraws:disable-culling in the /etc/environment file.
__________________
Fedora 19 Gnome on a ThinkPad X220, i5-2540M CPU, Intel HD Graphics 3000, Intel N 6205 wireless, and Sierra Wireless 754S Mobile Hotspot (AT&T)
Reply With Quote
Reply

Tags
api, bridge, decoding, fedora, ivy, video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help decoding a base64 line liderbug Security and Privacy 4 1st April 2012 03:58 PM
[SOLVED] Sandy Bridge video Eddd Hardware & Laptops 4 4th April 2011 09:26 PM
Sandy Bridge video. sanets Hardware & Laptops 6 3rd February 2011 06:59 PM
MPEG-2 Decoding James Board Using Fedora 15 28th June 2008 04:26 AM
network bridge setting up bridge-utils brw02005 Servers & Networking 0 28th March 2007 11:08 PM


Current GMT-time: 11:31 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Sao Jose do Rio Pardo Travel Photos - Oldham Travel Photos - Jandiala Photos