<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    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.<br>
    <br>
    <div class="moz-cite-prefix">On 11/04/2013 11:40 AM, Sky Qt wrote:<br>
    </div>
    <blockquote
cite="mid:CAHOxkh3v7x3hOY-3JUnewTJH9Mv+ATQdwVbribFovaogxkUu8A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Brendan,
        <div><br>
        </div>
        <div>  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. </div>
        <div><br>
        </div>
        <div>Here is the link to the textoverlay docs: <a
            moz-do-not-send="true"
href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-textoverlay.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-textoverlay.html</a> </div>
        <div>do let me know if that is right and it will be great if you
          can point me to an example. </div>
        <div><br>
        </div>
        <div>Sky.</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Mon, Nov 4, 2013 at 9:17 PM, Brendan
          Long <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:self@brendanlong.com" target="_blank">self@brendanlong.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <div class="im">
                <div>On 11/04/2013 03:24 AM, Sky Qt wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">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?<br>
                  </div>
                </blockquote>
              </div>
              gst-inspect-1.0 subtitleoverlay shows:<br>
              <br>
              <blockquote type="cite">  font-desc           : Pango font
                description of font to be used for subtitle rendering<br>
                                        flags: readable, writable<br>
                                        String. Default: null<br>
              </blockquote>
              A search for "pango font description" gives <a
                moz-do-not-send="true"
                href="https://developer.gnome.org/pango/stable/pango-Fonts.html"
                target="_blank">this documentation</a>, but
              unfortunately that only seems to control the font family,
              size, and type.<br>
              <br>
              A search for "pango line spacing" gives <a
                moz-do-not-send="true"
href="https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#PangoLayout-struct"
                target="_blank">the documentation for Pango Layouts</a>,
              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.<br>
              <br>
              Note: I think the actual element of interest is
              "textrender" or 'textoverlay" in
              gst-plugins-base/ext/pango.<br>
            </div>
            <br>
            _______________________________________________<br>
            gstreamer-devel mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
              target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>