56
<div class="refsect1" title="Properties">
56
<div class="refsect1">
57
57
<a name="gst-plugins-bad-plugins-assrender.properties"></a><h2>Properties</h2>
58
58
<pre class="synopsis">
59
59
"<a class="link" href="gst-plugins-bad-plugins-assrender.html#GstAssRender--embeddedfonts" title='The "embeddedfonts" property'>embeddedfonts</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
60
60
"<a class="link" href="gst-plugins-bad-plugins-assrender.html#GstAssRender--enable" title='The "enable" property'>enable</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
63
<div class="refsect1" title="Description">
63
<div class="refsect1">
64
64
<a name="gst-plugins-bad-plugins-assrender.description"></a><h2>Description</h2>
66
66
Renders timestamped SSA/ASS subtitles on top of a video stream.
68
<div class="refsect2" title="Example launch line">
69
<a name="id576398"></a><h3>Example launch line</h3>
70
<div class="refsect2">
71
<a name="idp8821376"></a><h3>Example launch line</h3>
70
72
<div class="informalexample">
71
73
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
74
76
<td class="listing_lines" align="right"><pre>1</pre></td>
75
<td class="listing_code"><pre class="programlisting">gst<span class="symbol">-</span>launch <span class="symbol">-</span>v filesrc location<span class="symbol">=/</span>path<span class="symbol">/</span>to<span class="symbol">/</span>mkv <span class="symbol">!</span> matroskademux name<span class="symbol">=</span>d <span class="symbol">!</span> queue <span class="symbol">!</span> mp3parse <span class="symbol">!</span> mad <span class="symbol">!</span> audioconvert <span class="symbol">!</span> autoaudiosink d<span class="symbol">. !</span> queue <span class="symbol">!</span> ffdec_h264 <span class="symbol">!</span> ffmpegcolorspace <span class="symbol">!</span> r<span class="symbol">.</span> d<span class="symbol">. !</span> queue <span class="symbol">!</span> <span class="string">"application/x-ass"</span> <span class="symbol">!</span> assrender name<span class="symbol">=</span>r <span class="symbol">!</span> ffmpegcolorspace <span class="symbol">!</span> autovideosink</pre></td>
77
<td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch <span class="gtkdoc opt">-</span>v filesrc location<span class="gtkdoc opt">=/</span>path<span class="gtkdoc opt">/</span>to<span class="gtkdoc opt">/</span>mkv <span class="gtkdoc opt">!</span> matroskademux name<span class="gtkdoc opt">=</span>d <span class="gtkdoc opt">!</span> queue <span class="gtkdoc opt">!</span> mp3parse <span class="gtkdoc opt">!</span> mad <span class="gtkdoc opt">!</span> audioconvert <span class="gtkdoc opt">!</span> autoaudiosink d<span class="gtkdoc opt">. !</span> queue <span class="gtkdoc opt">!</span> ffdec_h264 <span class="gtkdoc opt">!</span> ffmpegcolorspace <span class="gtkdoc opt">!</span> r<span class="gtkdoc opt">.</span> d<span class="gtkdoc opt">. !</span> queue <span class="gtkdoc opt">!</span> <span class="string">"application/x-ass"</span> <span class="gtkdoc opt">!</span> assrender name<span class="gtkdoc opt">=</span>r <span class="gtkdoc opt">!</span> ffmpegcolorspace <span class="gtkdoc opt">!</span> autovideosink</pre></td>
80
82
This pipeline demuxes a Matroska file with h.264 video, MP3 audio and embedded ASS subtitles and renders the subtitles on top of the video.
83
<div class="refsect1" title="Details">
86
<div class="refsynopsisdiv">
88
<div class="refsect2">
89
<a name="idp8819136"></a><h3>Element Information</h3>
90
<div class="variablelist"><table border="0">
91
<col align="left" valign="top">
94
<td><p><span class="term">plugin</span></p></td>
96
<a class="link" href="gst-plugins-bad-plugins-plugin-assrender.html#plugin-assrender">assrender</a>
100
<td><p><span class="term">author</span></p></td>
101
<td>Benjamin Schmitz <vortex@wolpzone.de>, Sebastian Dröge <sebastian.droege@collabora.co.uk></td>
104
<td><p><span class="term">class</span></p></td>
105
<td>Mixer/Video/Overlay/Subtitle</td>
111
<div class="refsect2">
112
<a name="idp8811072"></a><h3>Element Pads</h3>
113
<div class="variablelist"><table border="0">
114
<col align="left" valign="top">
117
<td><p><span class="term">name</span></p></td>
121
<td><p><span class="term">direction</span></p></td>
125
<td><p><span class="term">presence</span></p></td>
129
<td><p><span class="term">details</span></p></td>
130
<td>application/x-ass</td>
133
<td><p><span class="term"></span></p></td>
134
<td> application/x-ssa</td>
138
<div class="variablelist"><table border="0">
139
<col align="left" valign="top">
142
<td><p><span class="term">name</span></p></td>
146
<td><p><span class="term">direction</span></p></td>
150
<td><p><span class="term">presence</span></p></td>
154
<td><p><span class="term">details</span></p></td>
155
<td>video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
158
<td><p><span class="term"></span></p></td>
159
<td> video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
162
<td><p><span class="term"></span></p></td>
163
<td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
166
<td><p><span class="term"></span></p></td>
167
<td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
170
<td><p><span class="term"></span></p></td>
171
<td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
174
<td><p><span class="term"></span></p></td>
175
<td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
178
<td><p><span class="term"></span></p></td>
179
<td> video/x-raw-yuv, format=(fourcc)I420, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
183
<div class="variablelist"><table border="0">
184
<col align="left" valign="top">
187
<td><p><span class="term">name</span></p></td>
191
<td><p><span class="term">direction</span></p></td>
195
<td><p><span class="term">presence</span></p></td>
199
<td><p><span class="term">details</span></p></td>
200
<td>video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
203
<td><p><span class="term"></span></p></td>
204
<td> video/x-raw-rgb, bpp=(int)24, depth=(int)24, endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
207
<td><p><span class="term"></span></p></td>
208
<td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
211
<td><p><span class="term"></span></p></td>
212
<td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
215
<td><p><span class="term"></span></p></td>
216
<td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
219
<td><p><span class="term"></span></p></td>
220
<td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
223
<td><p><span class="term"></span></p></td>
224
<td> video/x-raw-yuv, format=(fourcc)I420, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
233
<div class="refsect1">
84
234
<a name="gst-plugins-bad-plugins-assrender.details"></a><h2>Details</h2>
85
<div class="refsect2" title="GstAssRender">
86
<a name="GstAssRender-struct"></a><h3>GstAssRender</h3>
87
<pre class="programlisting">typedef struct _GstAssRender GstAssRender;</pre>
235
<div class="refsect2">
236
<a name="GstAssRender-struct"></a><h3>struct GstAssRender</h3>
237
<pre class="programlisting">struct GstAssRender;</pre>
92
<div class="refsect1" title="Property Details">
242
<div class="refsect1">
93
243
<a name="gst-plugins-bad-plugins-assrender.property-details"></a><h2>Property Details</h2>
94
<div class="refsect2" title='The "embeddedfonts" property'>
244
<div class="refsect2">
95
245
<a name="GstAssRender--embeddedfonts"></a><h3>The <code class="literal">"embeddedfonts"</code> property</h3>
96
246
<pre class="programlisting"> "embeddedfonts" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
97
247
<p>Extract and use fonts embedded in the stream.</p>
98
248
<p>Default value: TRUE</p>
101
<div class="refsect2" title='The "enable" property'>
251
<div class="refsect2">
102
252
<a name="GstAssRender--enable"></a><h3>The <code class="literal">"enable"</code> property</h3>
103
253
<pre class="programlisting"> "enable" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
104
254
<p>Enable rendering of subtitles.</p>