From: Gustavo J A M C. <gj...@in...> - 2003-04-21 21:15:18
|
A Seg, 2003-04-21 =E0s 21:42, Wim Taymans escreveu: > On Mon, 2003-04-21 at 12:35, Gustavo J A M Carneiro wrote: > > I'm trying to make a plugin called 'textoverlay', which displays te= xt > > on top of a video frame buffer, for subtitles, etc. > > It is not even half finished. I was just trying to do some drawing= , > > of some white pixels, to see what happens. Unfortunately, when I us= e > > this plugin, nothing happens. Even worse, the video does not reach t= he > > output device. >=20 > Your plugin does not specify a complete GstCaps for the RGB video forma= t > (fe. the bitmaks are missing and the widht/height is not set). The > videosink will in this case not know what to show, so nothing will > happen. >=20 > I suggest to add a link function on the sinkpad that parses the > widht/height of the incomming frames and use gst_pad_try_set_caps to > forward this format on the srcpad (look at goom for example and adapt > for the video format). Well, I just read for the first time the gstreamer manual 2 days ago.=20 I'm a bit green with these things. What I'm doing is take some plugins, chop off the code I don't understand, and add my own code. :) Thanks! =20 >=20 > Regards, >=20 > Wim >=20 >=20 > > Can someone experienced with these things please look at the code > > (it's small). Thanks! --=20 Gustavo J. A. M. Carneiro <gj...@in...> <gu...@us...> |