Re: Embed movie player in a gtkmm application



Even if coding it is a little harder, i'd still choose (and suggest) gstreamer(mm) anytime because of the g-ness (easily compatible with your own app) and the fact that you don't run a separate process for the media playback (security, etc..). For specialized situations maybe gtk + mplayer may be the right thing but generally i think choosing gstreamer is right.

2008/7/25 José Alburquerque <jaalburquerque cox net>
Paulo Flabiano Smorigo wrote:
Hi José,

You could send me some example? I tried to implement using some forum examples by with no success...


I can't quite send you an example because the only example on this I've worked on is the gstreamermm media player (it's in the examples/media_player_gtkmm directory of gstreamermm or you can look at the code from svn here: http://svn.gnome.org/viewvc/gnomemm/gstreamermm/trunk/examples/media_player_gtkmm/).  As far as using mplayer, if you search on google or even this list ("embedding mplayer", "embedding video" or something like that) I think you'll find some code that might show you how you could do this also.  Here's a good one I found which might be useful to you:

http://marc.info/?l=gtkmm&m=119145131801127&w=2

By the way, use "respond to all" in your mail client so that your mail is sent to the list and others can reply also.

Thanks in advance...
Paulo


On Thu, Jul 24, 2008 at 18:22, José Alburquerque <jaalburquerque cox net <mailto:jaalburquerque cox net>> wrote:

   Paulo Flabiano Smorigo wrote:

       Hi everybody,

       I saw some posts about create applications to run movies.
       What's is the best way to do that? Mplayer, totem, vlc?
       Anyone here who asks for help manage to do the work?


   mplayer's man page says it is possible to embed mplayer video in
   another window (using its -wid option) if you can get the window's
   x window id which is possible in gtkmm by using the GDK_WINDOW_XID
   <http://library.gnome.org/devel/gdk/2.12/gdk-X-Window-System-Interaction.html#GDK-WINDOW-XID:CAPS>
   macro on the underlying gobject of the Gdk::Window of the window.
    gstreamermm also makes it possible to display video in windows
   (in fact, there's an example media player which shows how to do
   just that).  The problem with gstreamermm is that it gives much
   more control over what you do with video etc. and for that it is
   necessary to understand the "pipeline" framework it is based on.
    If all you need to do is display video the mplayer option, I
   think, is pretty good.  If you anticipate having to "process" your
   video in some way, then I would recommend that you look at
   GStreamer and gstreamermm to see if it fits your needs.

   --    José Alburquerque




--
José Alburquerque

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list



--
------------
Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
[Bitte beachten Sie, dass dem Gesetz zur Vorratsdatenspeicherung zufolge
jeder elektronische Kontakt mit mir sechs Monate lang gespeichert wird.]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]