Display Gstreamer video in QML

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Display Gstreamer video in QML

doon
I try to use Gstreamer(not QtGstreamer or QtMultimedia) in QML(Qt Quick Controls Application), but I have a problem with video output. I tried default for GStreamer way to display video - set a window handle which I got from the QtQuick item, but of course without success.
So how can I display GStreamer video in QML? Maybe some experience of qtquickstreamer will help me?
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Display Gstreamer video in QML

Sebastian Dröge-3
On Do, 2016-05-12 at 15:53 -0700, doon wrote:
> I try to use Gstreamer(not QtGstreamer or QtMultimedia) in QML(Qt Quick
> Controls Application), but I have a problem with video output. I tried
> default for GStreamer way to display video - set a window handle which I got
> from the QtQuick item, but of course without success. 
> So how can I display GStreamer video in QML? Maybe some experience of
> qtquickstreamer will help me?

There's a qmlvideosink in gst-plugins-bad, that can directly be
integrated into the QML scene graph.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Display Gstreamer video in QML

Matthew Waters
In reply to this post by doon
There's an element called qmlglsink available from
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/qt/

There's also an example of it's usage here:
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/qt/qml

Cheers
-Matt

On 13/05/16 01:53, doon wrote:

> I try to use Gstreamer(not QtGstreamer or QtMultimedia) in QML(Qt Quick
> Controls Application), but I have a problem with video output. I tried
> default for GStreamer way to display video - set a window handle which I got
> from the QtQuick item, but of course without success.
> So how can I display GStreamer video in QML? Maybe some experience of
> qtquickstreamer will help me?
> Thanks.
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Display-Gstreamer-video-in-QML-tp4677513.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>




_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Display Gstreamer video in QML

doon
Matthew Waters wrote
There's an element called qmlglsink available from
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/qt/

There's also an example of it's usage here:
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/qt/qml

Cheers
-Matt
Sebastian Dröge-3 wrote
There's a qmlvideosink in gst-plugins-bad, that can directly be
integrated into the QML scene graph.
Thanks for the quick and simple answer, Sebastian and Matthew!
And are qmlvideosink and qmlglsink elements available for Windows, Linux, OS X, Android and iOS?
And how can I install them? Because I can't find them using gst-inspect-1.0.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Display Gstreamer video in QML

Matthew Waters
On 13/05/16 16:14, doon wrote:

> Matthew Waters wrote
>> There's an element called qmlglsink available from
>> https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/qt/
>>
>> There's also an example of it's usage here:
>> https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/qt/qml
>>
>> Cheers
>> -Matt
>
> Sebastian Dröge-3 wrote
>> There's a qmlvideosink in gst-plugins-bad, that can directly be
>> integrated into the QML scene graph.
> Thanks for the quick and simple answer, Sebastian and Matthew!
> And are qmlvideosink and qmlglsink elements available for Windows, Linux, OS
> X, Android and iOS?
> And how can I install them? Because I can't find them using gst-inspect-1.0.
They currently will work on Linux (X11), OS X, Android and iOS.  There's
currently no Windows support yet although that should be simple to add.

Currently you have to build gst-plugins-bad against a Qt >= 5.4
installation to be able to get access to qmlglsink.  On OS X and iOS
this is a little tricky as it requires changes to Qt's build files to
make it work.  All the other platforms work out of the box.

Cheers
-Matt


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Re: Display Gstreamer video in QML

doon
Matthew Waters wrote
There's currently no Windows support yet although that should be simple to add.
Is it possible to do it now manually?
Matthew Waters wrote
Currently you have to build gst-plugins-bad against a Qt >= 5.4
installation to be able to get access to qmlglsink.
Can you share a link which describes how can I do this? Because I used apt-get to install GStreamer.
Matthew Waters wrote
On OS X and iOS this is a little tricky as it requires changes to Qt's build files to
make it work.
Can you explain how can I do this or give a sample?
Regards.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Display Gstreamer video in QML

doon
In reply to this post by Matthew Waters
Matthew Waters wrote
They currently will work on Linux (X11), OS X, Android and iOS.  There's
currently no Windows support yet although that should be simple to add.

Currently you have to build gst-plugins-bad against a Qt >= 5.4
installation to be able to get access to qmlglsink.  On OS X and iOS
this is a little tricky as it requires changes to Qt's build files to
make it work.  All the other platforms work out of the box.

Cheers
-Matt


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


signature.asc (484 bytes) <http://gstreamer-devel.966125.n4.nabble.com/attachment/4677540/0/signature.asc>
I think you missed my previous message, so do you have any suggestions about it?
By the way, can I use QtGstreamer on Windows(if I won't be able to use qmlglsink or qmlvideosink on Windows) for displaying video in QML?
Regards.
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Display Gstreamer video in QML

Matthew Waters-2
On 16/05/16 04:44, doon wrote:

> Matthew Waters wrote
>> They currently will work on Linux (X11), OS X, Android and iOS.  There's
>> currently no Windows support yet although that should be simple to add.
>>
>> Currently you have to build gst-plugins-bad against a Qt >= 5.4
>> installation to be able to get access to qmlglsink.  On OS X and iOS
>> this is a little tricky as it requires changes to Qt's build files to
>> make it work.  All the other platforms work out of the box.
>>
>> Cheers
>> -Matt
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel@.freedesktop
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>> signature.asc (484 bytes)
>> &lt;http://gstreamer-devel.966125.n4.nabble.com/attachment/4677540/0/signature.asc&gt;
> I think you missed my previous message, so do you have any suggestions about
> it?

Honestly I don't remember seeing it and don't have the time to look for it.

> By the way, can I use QtGstreamer on Windows(if I won't be able to use
> qmlglsink or qmlvideosink on Windows) for displaying video in QML?
> Regards.

It should be possible, I've never tried it.

Cheers
-Matt

> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Display-Gstreamer-video-in-QML-tp4677513p4677581.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel