Hardware acceleration with gstreamer1-vaapi and html5 video

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Hardware acceleration with gstreamer1-vaapi and html5 video

Gianvito Cavasoli
Hello,
I'm using Epiphany with gstreamer1-vaapi and radeon driver (r600). If I set the environment variable "export LIBVA_DRIVER_NAME=radeonsi" Epiphany don't play the html5 video (youtube, etc.), but if I use "export LIBVA_DRIVER_NAME=vdpau" the video are played normally but use a lot of CPU camparison to "radeonsi" variable (I've tested this with Totem and a movie in full HD). It's a problem of Epiphany, WebkitGTK or gstreamer1-vaapi?
Thanks

--
Inviata con Evolution da GNOME
«Lillo, la fine del mondo è vicina! Godiamocela!» 
-- La bambina filosofica

_______________________________________________
epiphany-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/epiphany-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hardware acceleration with gstreamer1-vaapi and html5 video

Michael Catanzaro-2
On Tue, 2016-12-13 at 12:32 +0100, Gianvito Cavasoli wrote:
> Hello,
> I'm using Epiphany with gstreamer1-vaapi and radeon driver (r600). If
> I set the environment variable "export LIBVA_DRIVER_NAME=radeonsi"
> Epiphany don't play the html5 video (youtube, etc.), but if I use
> "export LIBVA_DRIVER_NAME=vdpau" the video are played normally but
> use a lot of CPU camparison to "radeonsi" variable (I've tested this
> with Totem and a movie in full HD). It's a problem of Epiphany,
> WebkitGTK or gstreamer1-vaapi?
> Thanks

Hi,

It's very unlikely to be an Epiphany problem. It could be a WebKit
problem, but I would try asking gstreamer1-vaapi developers first.

Michael
_______________________________________________
epiphany-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/epiphany-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hardware acceleration with gstreamer1-vaapi and html5 video

Víctor M. Jáquez L.
In reply to this post by Gianvito Cavasoli
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?

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.

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

> 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
_______________________________________________
epiphany-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/epiphany-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hardware acceleration with gstreamer1-vaapi and html5 video

Gianvito Cavasoli
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.png


$ 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 :)

--
Inviata con Evolution da GNOME
Profilo: https://it.gravatar.com/janvitus
«Lillo, la fine del mondo è vicina! Godiamocela!» 
                                                -- La bambina filosofica
_______________________________________________
epiphany-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/epiphany-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hardware acceleration with gstreamer1-vaapi and html5 video

Gianvito Cavasoli
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
_______________________________________________
epiphany-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/epiphany-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hardware acceleration with gstreamer1-vaapi and html5 video

Víctor M. Jáquez L.
On 12/24/16 at 12:16pm, Gianvito Cavasoli wrote:

>
> 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?

Yes, please.

But the fact that it works in Wayland but not in X makes me thing that the
problem perhaps relies in the driver.

Can you run this pipeline?

gst-play-1.0 any-video.avi --videosink=xvimagesink

A problem which I don't know how to solve right now, is that I don't have a
radeon card available to test gstreamer-vaapi. I need to think how to solve
it.

vmjl

>
> Regards
_______________________________________________
epiphany-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/epiphany-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Hardware acceleration with gstreamer1-vaapi and html5 video

Gianvito Cavasoli
Il giorno sab, 24/12/2016 alle 12.42 +0100, Víctor M. Jáquez L. ha scritto:
> On 12/24/16 at 12:16pm, Gianvito Cavasoli wrote:

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?
>
> Yes, please.
>
> But the fact that it works in Wayland but not in X makes me thing > that the
> problem perhaps relies in the driver.
>
> Can you run this pipeline?
>
> gst-play-1.0 any-video.avi --videosink=xvimagesink
>
> A problem which I don't know how to solve right now, is that I don't > have a
> radeon card available to test gstreamer-vaapi. I need to think how to > solve
> it.
>
> vmjl
>

Regards
>

Hello, same result on Xorg and Wayland session:

@fedorabox ~]$ gst-play-1.0 Movie.1080p.Dts.x264.mkv  --videosink=xvimagesink --gst-debug-level=2
Press 'k' to see a list of keyboard shortcuts.
Now playing /home/gianvito/Movie.1080p.Dts.x264.mkv
0:00:00.026410625 17047 0x55ab69be62c0 WARN                 basesrc gstbasesrc.c:3491:gst_base_src_start_complete:<source> pad not activated yet
0:00:00.026781196 17047 0x55ab69be62c0 WARN                 basesrc gstbasesrc.c:3491:gst_base_src_start_complete:<source> pad not activated yet
Redistribute latency...
0:00:00.090569959 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersEdition subelement 0x45db - ignoring
0:00:00.090592533 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090610863 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090623274 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090635135 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090646854 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090658167 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090669803 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090682708 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090694525 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090705890 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.090717796 17047 0x7fd76813f140 WARN      matroskareadcommon matroska-read-common.c:502:gst_matroska_read_common_parse_skip:<matroskademux0:sink> Unknown ChaptersTitles subelement 0x437c - ignoring
0:00:00.135380376 17047 0x7fd764014e30 WARN                    alsa conf.c:4738:snd_config_expand: alsalib error: Unknown parameters {AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
0:00:00.135406557 17047 0x7fd764014e30 WARN                    alsa pcm.c:2266:snd_pcm_open_noupdate: alsalib error: Unknown PCM default:{AES0 0x02 AES1 0x82 AES2 0x00 AES3 0x02}
Stream with high frequencies VQ coding
Stream with high frequencies VQ coding
Redistribute latency...
Redistribute latency...

-- 
Inviata con Evolution da GNOME
«Lillo, la fine del mondo è vicina! Godiamocela!» 
-- La bambina filosofica

_______________________________________________
epiphany-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/epiphany-list
Loading...