Gstreamer application using Qt
Luca Santini
luca.santini at spesonline.com
Tue Sep 4 00:01:53 PDT 2012
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...
Video { source: "myvideo.avi" }
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).
On 04/09/2012 08:07, Cedric Hombourger wrote:
>
> 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...
>
> 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)
>
> Direct use of regular GStreamer APIs is also possible. In your .pro
> file, you would add something like:
>
> unix {
> CONFIG += link_pkgconfig
> PKGCONFIG += gstreamer-0.10
> }
> You can then add the following to your C++ files:
>
> #include <gst/gst.h>
> and I suggest something like below as your first experiment:
>
> guint major, minor, micro, nano;
> gst_init (&argc, &argv);
> gst_version (&major, &minor, µ, &nano);
> Print (or check in your debugger) major, minor, micro values. They
> should match your GStreamer installation.
>
> Hope this helps!
> Cedric
>
> On Sep 4, 2012, at 7:43 AM, pushpa
> <pushpalatha.sg at mistralsolutions.com
> <mailto:pushpalatha.sg at mistralsolutions.com>> wrote:
>
>> Hi Cedric,
>>
>> Thanks for your response.
>>
>> I am new to Qt, so i dont know much about it. I dont know what is the
>> difference between QtGstreamer, .QtMultimedia/QtMobility...
>>
>>
>> If i want to execute using regular 'C' Gstreamer API's how do i have to ?
>>
>>
>> Regards,
>> Pushpa
>>
>>
>>
>> --
>> View this message in context:
>> http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-application-using-Qt-tp4656142p4656144.html
>> Sent from the GStreamer-devel mailing list archive at Nabble.com
>> <http://Nabble.com>.
>> _______________________________________________
>> 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/20120904/a686b13c/attachment.html>
More information about the gstreamer-devel
mailing list