textoverlay stops the video stream

Nicolas Dufresne nicolas.dufresne at collabora.com
Wed Feb 3 17:05:35 UTC 2016


Hi,

I notice you are using an older version of GStreamer (the 0.10 era). We
stopped working on this version few years ago. It is likely that your
issues are solved in recent stable versions of GStreamer, 1.6 (or
probably even 1.4).

cheers,
Nicolas

Le mercredi 03 février 2016 à 02:54 -0800, Sc4reCr0w a écrit :
> Hello, I'm new with gstreamer. I work with some C code app. It opens
> usb-camera and shows its live frames on monitor via gstreamer
> pipeline
> Gstreamer pipeline is created with call:
> ....
> pipeline = gst_parse_launch("appsrc is-live=TRUE name=streamViewer !
> queue
> max-size-buffers=2 leaky=2 ! ffmpegcolorspace ! videoscale add-
> borders=TRUE
> ! autovideosink", NULL);
> ....
> So every frame from camera is saved to some buffer variable. This
> buffer
> works as the source for appsrc.
> 
> I need to add some text to be displayed with video stream. I tried
> such
> pipleline:
> pipeline = gst_parse_launch("appsrc is-live=TRUE name=streamViewer !
> queue
> max-size-buffers=2 leaky=2 ! ffmpegcolorspace ! videoscale add-
> borders=TRUE
> ! textoverlay text="TEST" ! autovideosink", NULL);
> 
> but it displays only first frame captured from camera and didn't
> react on
> all other received frames.
> So I think I do something wrong but yet I don't find any solution on
> Internet.
> Can anyone help me with use of textoverlay in such set up with any
> ideas,
> please ? 
> 
> Also I used cairotextoverlay and it worked on the half:
> pipeline = gst_parse_launch("appsrc is-live=TRUE name=streamViewer !
> queue
> max-size-buffers=2 leaky=2 ! ffmpegcolorspace ! videoscale add-
> borders=TRUE
> ! cairotextoverlay text="TEST" ! autovideosink", NULL);
> but I need several lines of text to be displayed. So 
> pipeline = gst_parse_launch("appsrc is-live=TRUE name=streamViewer !
> queue
> max-size-buffers=2 leaky=2 ! ffmpegcolorspace ! videoscale add-
> borders=TRUE
> ! cairotextoverlay text="TEST\nOK" ! autovideosink", NULL);
> displays '\n' as a rectangle and it doesn't break string into two
> lines. I
> get 'TESTrectangleOK' but I need 
> 'TEST
> OK'.
> So if someone knows how does cairotextoverlay break text into
> separate
> lines, tell me, please.
> 
> So help me, please, with this two problems.
> 
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/textoverlay-stops-the-video-stream-tp4675633.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160203/37b97414/attachment.sig>


More information about the gstreamer-devel mailing list