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