[vlc-devel] How can DIV cover VLC ActiveX control transparently
zhu shi song
zhushisongzhu at yahoo.com
Thu Jun 9 10:59:10 CEST 2011
Subpictures are displayed synchronously when vout thread displays pictures. But if video is paused, vout thread can do nothing. So filters analogous to logo can't work for me.
My task is when player is paused, I can add some video annotations such as spotlight, note. Spotlight is one rectangle which can be manipulated with mouse and displayed semi-trasparently over video. The same frame can hold several different type of annotations.
When playing video, player can use filter to composite video and its attached annotations. Vlc can composite logo picture with video. If vlc can composite one html page which is comprised of DIVs, textareas , or can composite spotlight, note with video directly ,the thing will be easy. Otherwise I firstly convert the annotation elements to images, then add these images to video like logo filter does. It's not suitable for web application.
I see subpicture region has psz_html field. Can vlc support html elements(textarea, div) rendering?
I'm tring to find practical way to add video annotations like youtube does using VLC activeX control. I need your help!
--- On Tue, 6/7/11, Rémi Denis-Courmont <remi at remlab.net> wrote:
> From: Rémi Denis-Courmont <remi at remlab.net>
> Subject: Re: [vlc-devel] How can DIV cover VLC ActiveX control transparently
> To: vlc-devel at videolan.org
> Cc: "zhu shi song" <zhushisongzhu at yahoo.com>
> Date: Tuesday, June 7, 2011, 1:26 PM
> Le mardi 7 juin 2011 19:00:56 zhu shi
> song, vous avez écrit :
> > I know that vlc has image
> composite mechanism which supports text and
> > OSD composite display through subpicture
> (vout_subpictures.c). But I
> > don't know the details, so I'll check them further.
> If you want to go that way, you'll need to write a new SPU
> source plugin to
> VLC, very much like the logo and the marquee filters. This
> might not be very
> practical for ActiveX though.
> The other option is to select a video output plugin that
> supports compositing
> by the graphic adapter, and use a transparent window on top
> of the video
> window. Well, that's the high level idea anyway; I have
> never tried myself.
> Rémi Denis-Courmont
More information about the vlc-devel