[webkit-gtk] Webkit-gtk support for HW accelerated video

Tord Andersson Tord.Andersson at qmatic.com
Thu Sep 22 01:25:26 PDT 2011


I am currently testing ways to use HW-acceleration of embedded video within webkit-gtk using 
gstreamer vaapi plugins on an Atom platform with Nvidia Ion graphics and associated drivers. 
However, H.264 videos that utilize the accelerated hardware decoding are started in separate windows. 
When tested in a system that uses SW decoding, this will not happen.
Is there some way to to force the embedded, accelerated video to stay within the main window?

Some details on the setup; 
- Kubuntu 11.04 64-bit, gstreamer-0.10 with VA-API plugins and nvidia drivers (nvidia-current).
- libwebkitgtk-dev 1.4.0-1~nnwkt1.

A typical test page (index.html):
-----------------------
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset=utf-8>
<title>Video Test Page</title>
</head>
<body>
<div id="container" margin="0" padding="0" border="0">
    <header>
     <h1>Video Test Page</h1>
    </header>
    <section>
     <hgroup>
            <video src="video/sintel_trailer-720p.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' video width="1080" height="720" margin="0" padding="0" border="0" loop="loop" autoplay></video>
        </hgroup>
    </section>
</div>
</body>
</html>
---------------------


More information about the webkit-gtk mailing list