kmssink + gtk video window

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

kmssink + gtk video window

nagendra sarma
hi all

i am using imx8 platform and with kmssink as video sink

i am able to play video using kmssink and it is well.

now i am developing a media player app with GTK + gstreamer

now, the problem is while playing video using playbin, my GTK window with
all the buttons required is not visible,, i think i have to use overlay, but
i did  not find any overlay support for kmssink ?

could you please help how to achieve this ?

my requirement is to keep gtk windown in top of video always

regards
nagendra



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: kmssink + gtk video window

Matthew Waters
This sounds like you want to use the gtksink or gtkglsink elements to
play the video in your Gtk+ application.

Otherwise you have to figure out how to add overlay support to kmssink.

Cheers
-Matt

On 10/07/18 00:23, nagendra sarma wrote:

> hi all
>
> i am using imx8 platform and with kmssink as video sink
>
> i am able to play video using kmssink and it is well.
>
> now i am developing a media player app with GTK + gstreamer
>
> now, the problem is while playing video using playbin, my GTK window with
> all the buttons required is not visible,, i think i have to use overlay, but
> i did  not find any overlay support for kmssink ?
>
> could you please help how to achieve this ?
>
> my requirement is to keep gtk windown in top of video always
>
> regards
> nagendra

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

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

Re: kmssink + gtk video window

nagendra sarma
thanks Matt

As i am new to gtk+ my question is little confusing.. sorry for that

i want to put my requirement more clear

i am creating media player using gtk+ and gstreamer (playbin)

gtk window opens with all controls in it.  on pressing play button i am
creating playbin  using kmssink as video sink, the video is playing well but
my gtk window is not visible , even mouse also not visible
my requirent is to keep my gtk+ window on top always with gstreamer running
in background

please suggest how to achieve this ?

regards
Nagendra



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: kmssink + gtk video window

Matthew Waters
On 11/07/18 15:09, nagendra sarma wrote:

> thanks Matt
>
> As i am new to gtk+ my question is little confusing.. sorry for that
>
> i want to put my requirement more clear
>
> i am creating media player using gtk+ and gstreamer (playbin)
>
> gtk window opens with all controls in it.  on pressing play button i am
> creating playbin  using kmssink as video sink, the video is playing well but
> my gtk window is not visible , even mouse also not visible
> my requirent is to keep my gtk+ window on top always with gstreamer running
> in background
>
> please suggest how to achieve this ?
You can't easily integrate kmssink with gtk.  kmssink is simply not
built for that.  You can move the kmssink window around however it will
never be synchronized with gtk+.

You need to use a gtk compatible sink like gtksink or gtkglsink.  Or use
another video sink that implements the GstVideoOverlay interface for the
window system you're running with.

Cheers
-Matt

> regards
> Nagendra


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

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

Re: kmssink + gtk video window

George Kiagiadakis-3
In reply to this post by nagendra sarma
On Tue, 2018-07-10 at 22:09 -0700, nagendra sarma wrote:

> thanks Matt
>
> As i am new to gtk+ my question is little confusing.. sorry for that
>
> i want to put my requirement more clear
>
> i am creating media player using gtk+ and gstreamer (playbin)
>
> gtk window opens with all controls in it.  on pressing play button i am
> creating playbin  using kmssink as video sink, the video is playing well but
> my gtk window is not visible , even mouse also not visible
> my requirent is to keep my gtk+ window on top always with gstreamer running
> in background
>
> please suggest how to achieve this ?

KMS is not meant to be used this way. KMS is a **low level** graphics access API
and only one process should be using KMS at a time. If you need to display
graphics from gstreamer and from another UI, implement a mouse cursor, input
event handling, etc... then you need a graphics compositor, like weston.

George

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: kmssink + gtk video window

Russel Winder
In reply to this post by nagendra sarma
On Tue, 2018-07-10 at 22:09 -0700, nagendra sarma wrote:

> thanks Matt
>
> As i am new to gtk+ my question is little confusing.. sorry for that
>
> i want to put my requirement more clear
>
> i am creating media player using gtk+ and gstreamer (playbin)
>
> gtk window opens with all controls in it.  on pressing play button i
> am
> creating playbin  using kmssink as video sink, the video is playing
> well but
> my gtk window is not visible , even mouse also not visible
> my requirent is to keep my gtk+ window on top always with gstreamer
> running
> in background
>
> please suggest how to achieve this ?
I believe you will need to use gtksink or gtkglsink. This is what
Sebastian told me to do for Me TV, and it works very well. Me TV was in
C++, but is now in Rust. The code is on GitHub if you want to take a
look at it:

https://github.com/Me-TV/Me-TV/blob/master/src/gstreamer_engine.rs

> regards
> Nagendra
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
--
Russel.
===========================================
Dr Russel Winder      t: +44 20 7585 2200
41 Buckmaster Road    m: +44 7770 465 077
London SW11 1EN, UK   w: www.russel.org.uk

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

signature.asc (849 bytes) Download Attachment