Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 835149

Summary: media-plugins/gst-plugins-va: new package
Product: Gentoo Linux Reporter: Stefan de Konink <stefan>
Component: New packagesAssignee: GStreamer package maintainers <gstreamer>
Status: RESOLVED FIXED    
Severity: normal CC: johannesp, jstein, kocelfc, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=907481
https://bugs.gentoo.org/show_bug.cgi?id=907479
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: ebuild suggestion
updated ebuild suggestion

Description Stefan de Konink 2022-03-14 16:06:17 UTC
The va plugins include vah264dec. There seems to be more to it then just copying a gst-plugins-bad template and naming it gst-plugins-va. While it does deliver the plugin it does not install libgstva-1.0.so which is a requirement.

The vah264dec and friends prevent the stutter observed in the vaapi variants, but at this moment in time requires explicit configuration GST_PLUGIN_FEATURE_RANK=vah264dec:MAX
Comment 1 Michal Petrucha 2023-05-21 14:13:20 UTC
Created attachment 862118 [details]
ebuild suggestion

I'm attaching an ebuild that I'm using in a local overlay that explicitly adds libgstva on top of what the gstreamer-meson eclass does by default. One of the issues with this ebuild is that the file name needs to be updated to match the gstreamer version, and I haven't found an easy way to automate that.
Comment 2 Kostadin Shishmanov 2023-05-30 20:25:56 UTC
Created attachment 862932 [details]
updated ebuild suggestion

I am attaching an updated ebuild without the dolib thing, which seems to be banned in EAPI=7 anyway. This change also makes it so you don't have to update the library version every time. The ebuild might need a bit of cleaning but it seems to be working fine so far with locally built obs-vaapi.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-30 20:53:04 UTC
*** Bug 902841 has been marked as a duplicate of this bug. ***
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-30 20:53:29 UTC
See also https://bugs.gentoo.org/902841#c0:
"""
GStreamer has two different plugins for hardware acceleration: GstVAAPI and GstVA. Only the former is currently available in the Gentoo repos (gst-plugins-vaapi). The problem is that this plugin is deprecated and newer versions of WebkitGTK blacklist it by default. (https://github.com/WebKit/WebKit/pull/790) This breaks hardware accelerated video in Webkit-based browsers on Gentoo, which would otherwise work with the new plugin.

Please consider enabling GstVA as a build option in gst-plugins-bad (-Dva=enabled) or packaging it as a separate ebuild. Thanks!
"""
Comment 5 Larry the Git Cow gentoo-dev 2023-05-30 22:25:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4841ceb546ee7b0e8f99efcc3c8acdcce5258e51

commit 4841ceb546ee7b0e8f99efcc3c8acdcce5258e51
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-05-30 22:23:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-30 22:25:01 +0000

    media-plugins/gst-plugins-va: new package, add 1.22.3
    
    Thanks to Stefan, Michal, and Kostadin for the motivation in the bug.
    
    Closes: https://bugs.gentoo.org/835149
    Signed-off-by: Sam James <sam@gentoo.org>

 media-plugins/gst-plugins-va/Manifest              |  1 +
 .../gst-plugins-va/gst-plugins-va-1.22.3.ebuild    | 32 ++++++++++++++++++++++
 media-plugins/gst-plugins-va/metadata.xml          |  8 ++++++
 3 files changed, 41 insertions(+)