Page 1 of 1

No Hardware acceleration with vlc web plugin

Posted: 21 Jul 2014 03:20
by daeseok.youn
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?

Re: No Hardware acceleration with vlc web plugin

Posted: 10 Jul 2015 01:36
by kd8eyf
I am also interested in enabling hardware acceleration in the web plugin.
Is this currently possible?

Re: No Hardware acceleration with vlc web plugin

Posted: 10 Jul 2015 09:05
by RSATom
Are you sure want use NPAPI plugin even knowing NPAPI will be completely removed from Chrome at September (i.e. less than two months)?

Re: No Hardware acceleration with vlc web plugin

Posted: 16 Jul 2015 11:13
by Jean-Baptiste Kempf
PPAPI ftw :)

Re: No Hardware acceleration with vlc web plugin

Posted: 16 Jul 2015 11:47
by RSATom
@jb, somebody works on PPAPI Vlc Plugin?

Re: No Hardware acceleration with vlc web plugin

Posted: 16 Jul 2015 13:49
by Jean-Baptiste Kempf
@jb, somebody works on PPAPI Vlc Plugin?
Maybe :)

Re: No Hardware acceleration with vlc web plugin

Posted: 16 Jul 2015 13:58
by RSATom
it will be surprise :)

Re: No Hardware acceleration with vlc web plugin

Posted: 20 Jul 2015 20:39
by kd8eyf
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?

Re: No Hardware acceleration with vlc web plugin

Posted: 21 Jul 2015 04:39
by RSATom
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);