Re: Hardware acceleration with gstreamer1-vaapi and html5 video



Il giorno mer, 14/12/2016 alle 14.59 +0100, Gianvito Cavasoli ha
scritto:
Il giorno mar, 13/12/2016 alle 15.15 +0100, Víctor M. Jáquez L. ha
scritto:
Hi,

On 12/13/16 at 12:32pm, Gianvito Cavasoli wrote:
Hello,
I'm using Epiphany with gstreamer1-vaapi and radeon driver
(r600).

Which version of gstreamer-vaapi?

1.10.0, included in Fedora 25.


We have changed a lot gstreamer-vaapi recently in particular when
downloading
the images from GPU to CPU. I recommend you to use the release
1.10.2. But
still there are rough edges.

If I set the environment variable "export
LIBVA_DRIVER_NAME=radeonsi"
Epiphany don't play the html5 video (youtube, etc.),

The first question would be why do you have to export this
variable?
libva
should be able to detect the first available driver.

libva chooses radeonsi by default, but with this the html5 videos
dont'
start, I've to export vdpau to see the videos.


The second question is what do you mean with "don't play"? nothing
is
shown?
is shown badly?

The videos load but don't start with a error (ex. on youtube):

https://s30.postimg.org/fgvgsarox/Schermata_da_2016_12_14_12_11_49.pn
g


$ export LIBVA_DRIVER_NAME=radeonsi && epiphany
Error scanning plugin
/usr/lib64/mozilla/plugins/libevbrowserplugin.so,
/usr/libexec/webkit2gtk-4.0/WebKitPluginProcess returned 256 exit
status
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: User requested driver 'radeonsi'
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: User requested driver 'radeonsi'
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: User requested driver 'radeonsi'
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_0_39
libva info: va_openDriver() returns 0

Sometimes, very rarely, the video plays but stutters (also with
Totem).

With vdpau:
$ export LIBVA_DRIVER_NAME=vdpau && epiphany
libva info: VA-API version 0.39.4
libva info: va_getDriverName() returns 0
libva info: User requested driver 'vdpau'
libva info: Trying to open /usr/lib64/dri/vdpau_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
Error scanning plugin
/usr/lib64/mozilla/plugins/libevbrowserplugin.so,
/usr/libexec/webkit2gtk-4.0/WebKitPluginProcess returned 256 exit
status



but if I use "export LIBVA_DRIVER_NAME=vdpau" the video are
played
normally
but use a lot of CPU camparison to "radeonsi" variable

In the release 1.10 we added a whitelist to block, precisely, the
vdpau-va
bridge backend which is undermaintained, and buggy. So, if you are
using this
release, the vdpau driver is bailed out and the software decoders
are
used as
fallback.

(I've tested this
with Totem and a movie in full HD). It's a problem of Epiphany,
WebkitGTK or
gstreamer1-vaapi?  Thanks

Most probably, gstreamer-vaapi in this case.

vmjl
_______________________________________________


Thanks :)


A small update: in Wayland session "radeonsi" works well. The issue
remains with Xorg session :)

However, there is a small problem with Wayland, if i dont use the
environment variable "LIBVA_DRIVER_NAME=radeonsi" driver "gallium" is
loaded, but this is an error, with Mesa 13 Gallium has been replaced
with radeonsi.

Maybe i've to report this to gstreamer-vaapi bugzilla?

Regards

-- 
Inviata con Evolution da GNOME
Profilo: https://it.gravatar.com/janvitus
«Lillo, la fine del mondo è vicina! Godiamocela!» 
                                                -- La bambina filosofica


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]