Using text overlay in a GnlComposition

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Using text overlay in a GnlComposition

Andoni Morales
Hi!
Is it possible to use a text overlay element in a GnlOperation ?

I'm trying to extract video segments and overlay some descriptive text
with the textoverlay element. For each segment I create a
gnlfilesource and a gnloperation element with the same value for all
the time properties (media-start, media-stop, start and stop). I also
add  a textoverlay element to the gnloperation element. The source pad
of the gnlcomposition is linked to an encoder tail. The app is working
fine without the text overlay.

For each segment the pipeline should be similiar to this one, which
works for me:

gst-launch-0.10 gnlfilesource location=video.avi  media-start=0
duration=5000000000 media-duration=5000000000 start=0 ! textoverlay
text="The description goes here" ! identity single-segment=true !
videorate ! x264enc ! matroskamux ! filesink location=test.avi

But when I run it on my app using the gnlcomposition I get a seek
error (<gnlcomposition> Sending seek event failed!):
http://pastebin.com/m798c5eb6

Any idea?

Andoni.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Using text overlay in a GnlComposition

amartin
Hi,

Yes, I think that the better option is to use a GnlOperation.

You should insert the textoverlay element in a bin and, once the bin is completely defined, add this bin to the operation.

Don't forget to define the sink and src of the bin through the ghost_pads.

Finally add the operation to the gnlcomposition.

I hope this can help you or others with the same problem.

Angel