Bug 12170 - Backport Request: Please provide libvdpau-va-gl package for mageia 4 (hardware acceleration for flash player with intel HD Graphics devices)
Summary: Backport Request: Please provide libvdpau-va-gl package for mageia 4 (hardwar...
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: Backports (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal enhancement
Target Milestone: Mageia 4
Assignee: QA Team
QA Contact:
URL:
Whiteboard: has_procedure feedback mga4-32-ok mga...
Keywords: Backport
Depends on: 12766
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-01 15:20 CET by Hervé Laurent
Modified: 2015-09-15 19:33 CEST (History)
10 users (show)

See Also:
Source RPM: libvdpau-va-gl
CVE:
Status comment:


Attachments

Description Hervé Laurent 2014-01-01 15:20:47 CET
Description of problem:

Flash videos lag on my ultrabook (core i5 4200U), especially in full screen mode.
I installed libvdpau-va-gl-0.2.1-1.fc19.x86_64.rpm (fedora core 19 package) and it worked out of the box with "VDPAU_DRIVER=va_gl" in the environment. 

After, flash videos use much less CPU and are fluid in full screen mode.

This kind of workaround is not appropriate for a production environment as it can make the system completely unusable.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.


Reproducible: 

Steps to Reproduce:
Manuel Hiebel 2014-01-01 21:39:34 CET

CC: (none) => anssi.hannula, thierry.vignaud, tmb

Comment 1 Thierry Vignaud 2014-01-06 12:02:17 CET
Done.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 2 José Jorge 2014-05-22 14:07:21 CEST
The package seems to have never built. I updated it today to 0.3.4 version, and tested it against future MGA5 cauldron : it works, without having to export any VDPAU variable.

CC: (none) => lists.jjorge

José Jorge 2014-05-25 08:42:48 CEST

Keywords: (none) => Backport
Assignee: bugsquad => lists.jjorge
Summary: Please provide libvdpau-va-gl package for mageia 4 (hardware acceleration for flash player with intel HD Graphics devices) => Backport Request: Please provide libvdpau-va-gl package for mageia 4 (hardware acceleration for flash player with intel HD Graphics devices)

Comment 3 José Jorge 2014-05-25 09:05:49 CEST
As this was an ask for MGA4, I convert this bug in a backport request.

I have tested this backport in MGA4 x86_64 with Intel vaapi, this way :

vainfo (to ensure you have VAAPI hardware)
export VDPAU_DRIVER=va_gl
mplayer -vo vdpau -vc ffh264vdpau,ffmpeg12vdpau,ffvc1vdpau,... file.mkv

It draws 15 watts instead of 18 when playing 1080p on my hardware, that's 20% more battery time.


Suggested advisory:
========================
Backported libvdpau-va-gl allows VAAPI use with mplayer and flash-player-plugin.
See hints on http://davidrosca.blogspot.fr/2013/05/va-api-backend-for-vdpau.html
========================

Updated packages in {core,tainted}/updates_testing:
========================
libvdpau-va-gl-0.3.4-1.mga4.x86_64
libvdpau-va-gl-0.3.4-1.mga4.i586

Source RPMs: 
libvdpau-va-gl-0.3.4-1.mga4.srpm

Status: RESOLVED => REOPENED
Component: New RPM package request => Backports
Version: Cauldron => 4
Resolution: FIXED => (none)
Assignee: lists.jjorge => qa-bugs
Target Milestone: --- => Mageia 4

Comment 4 Manuel Hiebel 2014-05-25 11:34:12 CEST
updates or backport testing ?
Comment 5 José Jorge 2014-05-25 21:02:23 CEST
(In reply to Manuel Hiebel from comment #4)
> updates or backport testing ?

Sorry, copy/paste error : 

Updated packages in core/backports_testing  of course.
Comment 6 José Jorge 2014-05-25 21:08:24 CEST
I could test on another MGA4_64 machine. All is Ok, including flash-player accelerated. Procedure below for flash-player-plugin test :

Firefox with YouTube shows software video in stats.

AS ROOT :
mkdir /etc/adobe
echo EnableLinuxHWVideoDecode=1 > /etc/adobe/mms.cfg

AS USER :
echo export VDPAU_DRIVER=va_gl >> ~/.bash_profile
logout/login

Firefox with YouTube shows accelerated video in stats.

Whiteboard: (none) => has_procedure mga4-64-ok

Comment 7 claire robinson 2014-05-26 10:56:40 CEST
Sorry José, we are unable to accept backports as there is a bug in rpmdrake (bug 12766) which makes the release packages invisible if a backport exists. 

I'm adding sysadmin as the packages should probably be removed from backports_testing until then.

This could possibly be considered as an update rather than backport as it's essentially a bugfix but please discuss on dev ML before doing so in case it can affect other systems.

I'm assigning back to you for the moment. Please reassign when you're ready. Thanks

CC: (none) => eeeemail, sysadmin-bugs
Depends on: (none) => 12766
Assignee: qa-bugs => lists.jjorge

claire robinson 2014-05-26 10:57:16 CEST

CC: eeeemail => qa-bugs

Comment 8 José Jorge 2014-05-28 21:13:10 CEST
Well, as no release package exists, I thought this backport could be pushed : it will not hide anything!
Comment 9 claire robinson 2014-05-29 09:31:36 CEST
Why not ask for an exception to push this as an update instead José. Email dev ML about it.
Comment 10 Thomas Backlund 2014-05-29 09:35:47 CEST
No, please dont start abusing updates, or we never get the the backports thing fixed...

As this wont trigger the backports bug, it can be handled as a real backport
Comment 11 claire robinson 2014-05-29 11:07:20 CEST
There is a patch proposed by anaselli to fix bug 12766 awaiting review btw
Comment 12 claire robinson 2014-05-29 16:12:45 CEST
Taking this one back then.

Assignee: lists.jjorge => qa-bugs

Comment 13 claire robinson 2014-06-07 09:20:35 CEST
Hervé we have a policy of asking the person requesting the backport to assist with testing it, could you ensure this package does what it's expected to please.

You'll find it in the Core Backports Testing media.
Comment 14 Hervé Laurent 2014-06-09 17:17:16 CEST
It works as expected, thanks.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 15 claire robinson 2014-06-09 18:36:09 CEST
it'll need to be pushed then.

Did you test x86_64 or i586 please?

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 16 Hervé Laurent 2014-06-09 21:26:07 CEST
I tested the x86_64 package, I have no MGA4 i586 installed.
Comment 17 Rémi Verschelde 2014-06-22 14:03:42 CEST
Testing Mageia 4 i586.

I followed the testcase described in comment 3, and it works as expected, VDPAU backend is now provided:

> [VS] Software VDPAU backend library initialized
> libva info: VA-API version 0.34.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/lib/dri/i965_drv_video.so
> libva info: Found init function __vaDriverInit_0_34
> libva info: va_openDriver() returns 0
> ==========================================================================
> Forced video codec: ffh264vdpau
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> libavcodec version 55.18.102 (external)
> Selected video codec: [ffh264vdpau] vfm: ffmpeg (FFmpeg H.264 (VDPAU))
> ==========================================================================
> ==========================================================================
> Trying to force audio codec driver family libmad...
> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
> AUDIO: 48000 Hz, 2 ch, floatle, 0.0 kbit/0.00% (ratio: 0->384000)
> Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
> ==========================================================================
> AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
> Starting playback...
> [VD_FFMPEG] Trying pixfmt=0.
> [VD_FFMPEG] XVMC-accelerated MPEG-2.
> Movie-Aspect is 2.00:1 - prescaling to correct movie aspect.
> VO: [vdpau] 1280x640 => 1280x640 H.264 VDPAU acceleration  [zoom]


Following hints on http://davidrosca.blogspot.fr/2013/05/va-api-backend-for-vdpau.html I also configured the VDPAU hw acceleration for flash-player-plugin.

To do so, I followed the procedure described in comment 6 (actually not, because I had overlooked this comment and figured out the procedure myself, but I did the same things ;). Afterwards Youtube shows that I have both "hardware video rendering, hardware video decoding" when right-clicking on the video and choosing "Advanced statistics".

CC: (none) => remi

Rémi Verschelde 2014-06-22 14:03:50 CEST

Whiteboard: has_procedure mga4-64-ok => has_procedure mga4-32-ok mga4-64-ok

Comment 18 Rémi Verschelde 2014-06-22 14:06:01 CEST
And I confirm that there is a clear improvement (at least for Flash videos in fullscreen, it was unusable without this backport, now it's fine).

@José: Wouldn't it be better if the libvdpau-va-gl package would set the required configuration for flash-player-plugin and "export VDPAU_DRIVER=va_gl" by itself? As it is now the backport candidate is only usable by advanced users, but I guess that end-users installing this package would expect it to work out of the box?
Comment 19 José Jorge 2014-06-23 08:31:49 CEST
In MGA5, it works  without the hack, so the problem is solved...
Comment 20 Rémi Verschelde 2014-06-23 08:48:49 CEST
Ah, it might be that my test was a bit too short on Cauldron (I installed the package, and since it wasn't working out of the box I did the same hack as described above). Probably I was just missing a reboot.

Or maybe my hardware (Intel HD Graphics 4000) doesn't qualify as i965? (IIUC the following line is what should make it work in mga5)

> #This automatically enable vdpau backend on intel i965
> ln -s libvdpau_va_gl.so.1 $RPM_BUILD_ROOT%{_libdir}/vdpau/libvdpau_i965.so.1

Would it also work out of the box for Flash player?
Comment 21 Otto Leipälä 2014-06-23 12:42:57 CEST
Yes but you have to configure vdpau to get it working with flash player.
mkdir /etc/adobe
echo -e "EnableLinuxHWVideoDecode = 1\nOverrideGPUValidation = 1" | tee /etc/adobe/mms.cfg

http://www.reddit.com/r/Ubuntu/comments/1wpavp/how_to_enable_vdpau_acceleration_for_accelerated/

CC: (none) => ozkyster

Florian Hubold 2014-08-03 14:18:05 CEST

CC: (none) => doktor5000

Samuel Verschelde 2014-08-13 15:54:15 CEST

CC: (none) => stormi
Source RPM: (none) => libvdpau-va-gl

Comment 22 claire robinson 2014-09-08 18:55:13 CEST
This isn't forgotten btw, it is on hold awaiting a new bugzilla keyword and some info from sysadmins.
Comment 23 Otto Leipälä 2014-10-11 23:46:57 CEST
It's removed from backports testing so it needs to be rebuild from src rpm too.
Comment 24 José Jorge 2014-10-12 11:10:24 CEST
(In reply to Otto Leipälä from comment #21)
> Yes but you have to configure vdpau to get it working with flash player.

Well, reverse it : flash player does not default using vdpau if it is avalaible, so one has to force it in flash player, this is not a vdpau configuration.
Comment 25 José Jorge 2014-12-02 19:20:22 CET
(In reply to claire robinson from comment #22)
> This isn't forgotten btw, it is on hold awaiting a new bugzilla keyword and
> some info from sysadmins.

So is this still awaiting a bugzilla keyword, or sysadmins info?
Comment 26 claire robinson 2014-12-02 19:25:55 CET
Yes, we're unable to push backports currently. There are 3 waiting.
Comment 27 claire robinson 2015-01-23 22:38:30 CET
Adding feedback marker until we can progress

Whiteboard: has_procedure mga4-32-ok mga4-64-ok => has_procedure feedback mga4-32-ok mga4-64-ok

Comment 28 David Walser 2015-09-15 19:33:48 CEST
Mageia 4 EOL is coming:
http://blog.mageia.org/en/2015/09/10/mageia-4-about-to-reach-its-end-of-life/

Status: REOPENED => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.