Hi heitor,
You'll need to use gobjects anyway, so a default windows install can't
run Java-gst until you install gstreamer, and gstreamer requires
gobject. To run my app in windows I install this package:
http://code.google.com/p/ossbuild/
Then I can run Gstreamer and textoverlay rightly. An example of how to
use textoverlay in a playbin2 (how I'm using in my test):
Element playbin = ElementFactory.make("playbin2", "playbin2");
playbin.set("uri", "file:///C:\\video.avi");
VideoComponent videoComponent = new VideoComponent();
Element videosink = videoComponent.getElement();
Element textoverlay = ElementFactory.make("textoverlay", "textoverlay");
Bin bin = new Bin("myBin");
bin.add(textoverlay);
Pad pad = textoverlay.getPad("video_sink");
GhostPad ghostpad = new GhostPad("sink", pad);
bin.addPad(ghostpad);
bin.add(videosink);
textoverlay.set("text", "Welcome to the Jungle!");
textoverlay.set("valign", "top");
textoverlay.set("halign", "right");
textoverlay.set("shaded-background", "yes");
textoverlay.set("font-desc", "Sans Bold 16");
Element.linkMany(textoverlay, videosink);
playbin.set("video-sink", bin);
playbin.setState(State.PLAYING);
but I think you could add this created bin as a videoSink in any other
class. I ran this code in windows and linux succesfully.
Roberto
On Sat, Nov 21, 2009 at 17:23, Heitor Meira <
htrm...@gmail.com> wrote:
> I have about the Pads... Somebodey knows if I can do it using Pads?!
>
> --
>
> You received this message because you are subscribed to the Google Groups "gstreamer-java" group.
> To post to this group, send email to
gstream...@googlegroups.com.
> To unsubscribe from this group, send email to
gstreamer-jav...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/gstreamer-java?hl=.
>
>
>