No Hardware acceleration with vlc web plugin

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
daeseok.youn
New Cone
New Cone
Posts: 1
Joined: 21 Jul 2014 02:16

No Hardware acceleration with vlc web plugin

Postby daeseok.youn » 21 Jul 2014 03:20

Hi,

OS : window 8.1
VLC version : latest(2.1.3)
GPU : Intel graphics HD xxxx

I have been tried to play videos in chrome with vlc plugin.
First, I played a video(1080p) with VLC player.
With disabling an option for GPU acceleration : CPU usage about 40~50%.
With enabling an option for GPU acceleration : CPU usage about 20%

I made a sample for playing in chrome with vlc plugin.

Code: Select all

<script type="text/javascript"> $(document).ready(function(){ var options = new Array(); options.push(":avcodec-hw=dxva2.lo"); var vlc = document.getElementById("video1"); vlc.playlist.clear(); vlc.playlist.add(<test file>, "test", options); // 1080p file. vlc.playlist.next(); vlc.playlist.play(); }); </script>
Above an option for vlc.playlist.add() is same as a configuration for GPU acceleration in VLC player.
But it doesn't work properly, so cpu usage is too high(50%). It seems to be not affect options for vlc.playlist.add().

Questions
1. How to enable HW acceleration(DXVA2.0) for plugin?
2. Actually, I am trying to modify vlc code to affect an option which is dxva2.0 by defalut.
Is it possible to enable that option and also can play in web plugin with H/W acceleration?

kd8eyf
New Cone
New Cone
Posts: 3
Joined: 10 Jul 2015 01:35

Re: No Hardware acceleration with vlc web plugin

Postby kd8eyf » 10 Jul 2015 01:36

I am also interested in enabling hardware acceleration in the web plugin.
Is this currently possible?

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: No Hardware acceleration with vlc web plugin

Postby RSATom » 10 Jul 2015 09:05

Are you sure want use NPAPI plugin even knowing NPAPI will be completely removed from Chrome at September (i.e. less than two months)?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: No Hardware acceleration with vlc web plugin

Postby Jean-Baptiste Kempf » 16 Jul 2015 11:13

PPAPI ftw :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: No Hardware acceleration with vlc web plugin

Postby RSATom » 16 Jul 2015 11:47

@jb, somebody works on PPAPI Vlc Plugin?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: No Hardware acceleration with vlc web plugin

Postby Jean-Baptiste Kempf » 16 Jul 2015 13:49

@jb, somebody works on PPAPI Vlc Plugin?
Maybe :)
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: No Hardware acceleration with vlc web plugin

Postby RSATom » 16 Jul 2015 13:58

it will be surprise :)

kd8eyf
New Cone
New Cone
Posts: 3
Joined: 10 Jul 2015 01:35

Re: No Hardware acceleration with vlc web plugin

Postby kd8eyf » 20 Jul 2015 20:39

Are you sure want use NPAPI plugin even knowing NPAPI will be completely removed from Chrome at September (i.e. less than two months)?
Yes, I am sure.
We have frozen our chrome installs to support NPAPI, and currently looking at converting to firefox.
I just need to know if the web plugin has any support for hardware acceleration, and if so, how to enable it?

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: No Hardware acceleration with vlc web plugin

Postby RSATom » 21 Jul 2015 04:39

Unfortunately Vlc Web Plugins doesn't have any option to enable hardware acceleration. So, you have following options:
1) modify plugin sources to add this option;
2) use WebChimera with

Code: Select all

<param name="hw-accel" value="true" />
(and maybe in FBVLC compatibility mode, if you need it most similar to original Vlc Web Plugins);


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 41 guests