This plugin renders text received on the text sink pad to a video buffer (retaining the alpha channel), so it can later be overlayed on top of video streams using other elements.
The text can contain newline characters. (FIXME: What about text wrapping? It does not make sense in this context)
Example launch lines gst-launch-1.0 -v filesrc location=subtitles.srt ! subparse ! textrender ! videoconvert ! autovideosink
Hierarchy Factory details
Authors: â David Schleef , GStreamer maintainers
Classification: â Filter/Editor/Video
Rank â none
Plugin â pango
Package â GStreamer Base Plug-ins
Pad Templatessink
text/x-raw:
format: { pango-markup, utf8 }
Presence â always
Direction â sink
Object type â GstPad
src
video/x-raw:
format: { AYUV, ARGB }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
Presence â always
Direction â src
Object type â GstPad
Properties font-descâfont-descâ gchararray
Pango font description of font to be used for rendering. See documentation of pango_font_description_from_string for syntax.
Flags : Read / Write
halignmentâhalignmentâ Text-render-halign *
Horizontal alignment of the text
Flags : Read / Write
Default value : center (1)
line-alignmentâline-alignmentâ Text-render-line-align *
Alignment of text lines relative to each other.
Flags : Read / Write
Default value : center (1)
valignmentâvalignmentâ Text-render-valign *
Vertical alignment of the text
Flags : Read / Write
Default value : baseline (0)
xpadâxpadâ gint
Horizontal paddding when using left/right alignment
Flags : Read / Write
Default value : 25
ypadâypadâ gint
Vertical padding when using top/bottom alignment
Flags : Read / Write
Default value : 25
Named constants Text-render-halignHorizontal alignment of the text.
Membersleft
(0) â left
center
(1) â center
right
(2) â right
Alignment of text lines relative to each other
Membersleft
(0) â left
center
(1) â center
right
(2) â right
Vertical alignment of the text.
Membersbaseline
(0) â baseline
bottom
(1) â bottom
top
(2) â top
The results of the search are
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4