textoverlay stops the video stream
Sc4reCr0w
scorpion1 at kmtn.ru
Wed Feb 3 10:54:44 UTC 2016
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.
More information about the gstreamer-devel
mailing list