<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    If you only need a music/video player or camera capture and
    eventually plans to use QML, QtMultimediaKit is your way. you can
    implement a player with a single line of QML code...<br>
    <br>
    Video { source: "myvideo.avi" }<br>
    <br>
    But if you need more power (custom pipelines, capture from v4l2
    generic devices etc.) this is definitively not the way to go: you
    need to link directly to gstreamer (as per Cedric example). The only
    side effect is you'll need some "major" tweaks to use it in QML (of
    course, only if you need it).<br>
    <br>
    <div class="moz-cite-prefix">On 04/09/2012 08:07, Cedric Hombourger
      wrote:<br>
    </div>
    <blockquote
      cite="mid:CED26D6C-475D-4BDE-8A8D-F4AD9BE81E9A@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div><br>
      </div>
      QtGstreamer is a project aiming at creating a C++ API (with a Qt
      style) for GStreamer allowing full control of the pipeline(s)
      created. It is not part of Qt per se. If using an embedded Linux
      distribution, QtGStreamer may not be included or enabled by
      default...
      <div><br>
        <div>QtMultimedia/QtMobility is a high level multimedia
          framework part of the Qt toolkit. It provides a (very) high
          level API and (AFAIK) does not allow tweaking of the
          pipeline(s)</div>
        <div><br>
        </div>
        <div>Direct use of regular GStreamer APIs is also possible. In
          your .pro file, you would add something like:</div>
        <div><br>
        </div>
        <div>
          <pre style="margin-top: 0px; margin-bottom: 12px; padding: 10px 15px !important; border: 1px solid rgb(202, 201, 201) !important; font: inherit; vertical-align: baseline; border-bottom-left-radius: 8px; background-color: rgb(250, 250, 250); overflow-x: auto; overflow-y: hidden; font-family: 'Courier New', Courier, monospace; color: rgb(85, 85, 85); line-height: 18px; text-align: left; ">unix {
    CONFIG += link_pkgconfig
    PKGCONFIG += gstreamer-0.10
}</pre>
          <div>You can then add the following to your C++ files:</div>
          <div><br>
          </div>
          <div>
            <pre style="margin-top: 0px; margin-bottom: 12px; padding: 10px 15px !important; border: 1px solid rgb(202, 201, 201) !important; font: inherit; vertical-align: baseline; border-bottom-left-radius: 8px; background-color: rgb(250, 250, 250); overflow-x: auto; overflow-y: hidden; font-family: 'Courier New', Courier, monospace; color: rgb(85, 85, 85); line-height: 18px; text-align: left; ">#include <gst/gst.h></pre>
          </div>
          <div>and I suggest something like below as your first
            experiment:</div>
          <div><br>
          </div>
          <div>
            <pre style="margin-top: 0px; margin-bottom: 12px; padding: 10px 15px !important; border: 1px solid rgb(202, 201, 201) !important; font: inherit; vertical-align: baseline; border-bottom-left-radius: 8px; background-color: rgb(250, 250, 250); overflow-x: auto; overflow-y: hidden; text-align: left; "><div><font color="#555555" face="Courier New, Courier, monospace"><span style="line-height: 18px;">guint major, minor, micro, nano;</span></font></div><div><span style="color: rgb(85, 85, 85); font-family: 'Courier New', Courier, monospace; line-height: 18px; ">gst_init (&argc, &argv);</span></div><div><span style="line-height: 18px; color: rgb(85, 85, 85); font-family: 'Courier New', Courier, monospace; ">gst_version (&major, &minor, &micro, &nano);</span></div></pre>
          </div>
          <div>Print (or check in your debugger) major, minor, micro
            values. They should match your GStreamer installation.</div>
          <div><br>
          </div>
          <div>Hope this helps!</div>
          <div>Cedric</div>
          <div><br>
          </div>
          <div>
            <div>On Sep 4, 2012, at 7:43 AM, pushpa <<a
                moz-do-not-send="true"
                href="mailto:pushpalatha.sg@mistralsolutions.com">pushpalatha.sg@mistralsolutions.com</a>>
              wrote:</div>
            <br class="Apple-interchange-newline">
            <blockquote type="cite">Hi Cedric,<br>
              <br>
                 Thanks for your response.<br>
              <br>
              I am new to Qt, so i dont know much about it. I dont know
              what is the<br>
              difference between QtGstreamer,
              .QtMultimedia/QtMobility...<br>
              <br>
              <br>
              If i want to execute using regular 'C' Gstreamer API's how
              do i have to ?<br>
              <br>
              <br>
              Regards,<br>
              Pushpa<br>
              <br>
              <br>
              <br>
              --<br>
              View this message in context: <a moz-do-not-send="true"
href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-application-using-Qt-tp4656142p4656144.html">http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-application-using-Qt-tp4656142p4656144.html</a><br>
              Sent from the GStreamer-devel mailing list archive at <a
                moz-do-not-send="true" href="http://Nabble.com">Nabble.com</a>.<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 class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
            </blockquote>
          </div>
          <br>
        </div>
      </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>