How to embed video in gtk app

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

How to embed video in gtk app

Fabian Sturm
Hi!

I am looking for the simplest possible way to embed a video in a gtk
app. Preferable I could embed any type of video but ogg alone would be
enough as a start. Since I could not find an existing gtk widget, I
started to directly using gstreamer.

Right now I have stripped down the seek.c example code to the minimum.
But with the xvimagesink I can only get the video in a separate window.

My current code: http://pastebin.com/m33a6019c

So for now my open questions are:

- How can I get the video embedded in gtk and not as seperate window

- How can I autodetect and play any supported format

Thanks a lot,
Fabian


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

Re: How to embed video in gtk app

Fabian Sturm
Hi!

> I am looking for the simplest possible way to embed a video in a gtk
> app.

I finally got a promissing looking hint on irc.
There seems to be a gtk widget under development.

http://diracvideo.org/git?p=gst-gtk-widgets.git

Thanks a lot, Fabian


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

Re: How to embed video in gtk app

Stefan Sauer
In reply to this post by Fabian Sturm
Fabian Sturm schrieb:
> Hi!
>
> I am looking for the simplest possible way to embed a video in a gtk
> app. Preferable I could embed any type of video but ogg alone would be
> enough as a start. Since I could not find an existing gtk widget, I
> started to directly using gstreamer.
>
> Right now I have stripped down the seek.c example code to the minimum.
> But with the xvimagesink I can only get the video in a separate window.

You need to use the XOverlay interface. Look at e.g.
gst-plugins-base/tests/examples/seek/seek.c

Stefan

>
> My current code: http://pastebin.com/m33a6019c
>
> So for now my open questions are:
>
> - How can I get the video embedded in gtk and not as seperate window
>
> - How can I autodetect and play any supported format
>
> Thanks a lot,
> Fabian
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


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

Re: How to embed video in gtk app

Felipe Contreras
In reply to this post by Fabian Sturm
On Sat, Mar 28, 2009 at 2:22 PM, Fabian Sturm <[hidden email]> wrote:
> Hi!
>
>> I am looking for the simplest possible way to embed a video in a gtk
>> app.
>
> I finally got a promissing looking hint on irc.
> There seems to be a gtk widget under development.
>
> http://diracvideo.org/git?p=gst-gtk-widgets.git

You can also check:
http://github.com/felipec/gst-player

--
Felipe Contreras

------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel