Subtitle display

Brendan Long self at brendanlong.com
Tue Nov 5 07:58:23 PST 2013


You can set your own text sink element with playbin's "textsink"
property. I'm not really sure how to construct a textoverlay (or how to
use one) though.

On 11/04/2013 11:40 AM, Sky Qt wrote:
> Hi Brendan,
>
>   Thanks for the reply. I definitely think it is the xpad and ypad
> properties of the textoverlay object that control the line spacing.
> But I haven't come across any examples of how to get a handle on the
> textoverlay object and change its properties. 
>
> Here is the link to the textoverlay
> docs: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-textoverlay.html 
> do let me know if that is right and it will be great if you can point
> me to an example. 
>
> Sky.
>
>
> On Mon, Nov 4, 2013 at 9:17 PM, Brendan Long <self at brendanlong.com
> <mailto:self at brendanlong.com>> wrote:
>
>     On 11/04/2013 03:24 AM, Sky Qt wrote:
>>     I need to reduce the lines spacing in the subtitle display. I
>>     have tried to look into the gstreamer api but could not locate
>>     any such api. Apparently VLC provides such control. Can anyone
>>     help find the api or point me to any resource that will help me?
>     gst-inspect-1.0 subtitleoverlay shows:
>
>>       font-desc           : Pango font description of font to be used
>>     for subtitle rendering
>>                             flags: readable, writable
>>                             String. Default: null
>     A search for "pango font description" gives this documentation
>     <https://developer.gnome.org/pango/stable/pango-Fonts.html>, but
>     unfortunately that only seems to control the font family, size,
>     and type.
>
>     A search for "pango line spacing" gives the documentation for
>     Pango Layouts
>     <https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoLayout-struct>,
>     which seems to be what you want. We could presumably add this to
>     GStreamer, but it would be a bit more complicated since there's no
>     *_from_string function.
>
>     Note: I think the actual element of interest is "textrender" or
>     'textoverlay" in gst-plugins-base/ext/pango.
>
>     _______________________________________________
>     gstreamer-devel mailing list
>     gstreamer-devel at lists.freedesktop.org
>     <mailto:gstreamer-devel at lists.freedesktop.org>
>     http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131105/bc4170ea/attachment-0001.html>


More information about the gstreamer-devel mailing list