 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
Sumit Kumar Familiar Face
Joined: 20 Nov 2007 Posts: 8
|
Posted: Tue Nov 20, 2007 2:06 pm Post subject: How to display video in main window |
|
|
Hi all,
I am working on multimedia application. I want to display video in main window.
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
I am receiving video frames in buffer.So how can I do that..which widget should i use??
regards,
sumit |
|
| Back to top |
|
 |
caracal GTK+ Geek
Joined: 21 Jun 2007 Posts: 89 Location: Wilkes Barre Pa
|
Posted: Mon Jan 07, 2008 6:52 am Post subject: |
|
|
You could use gstreamer and a gtk canvas widget but i would recommend clutter & gstreamer there both designed for multimedia projects.
Clutter is an open source software library for creating fast, visually rich and animated graphical user interfaces.
Clutter uses OpenGL (and optionally OpenGL ES) for rendering but with an API which hides the underlying GL complexity from the developer. The Clutter API is intended to be easy to use, efficient and flexible.
Clutter currently features the following:
Object oriented design via GObject with a familiar GTK+ like API.
Scene-graph of interface elements with multiple layers, positioning in 3D space, grouping, transparency, scaling, clipping and rotation.
Input event handling.
Frame based animation engine providing path interpolation, transitions and other custom effects via Behaviours and Timelines.
Custom Pango renderer providing efficient internationalized text rendering.
Support for media playback with GStreamer, Cairo graphics rendering and GTK+ embedding are available via optional add-on libraries.
Language bindings for Perl, Python and Mono
Backend windowing system support via GLX, SDL and EGL
http://clutter-project.org/
Gstreamer
GStreamer is a library that allows the construction of graphs of media-handling components, ranging from simple Ogg/Vorbis playback to complex audio (mixing) and video (non-linear editing) processing.
Applications can take advantage of advances in codec and filter technology transparently. Developers can add new codecs and filters by writing a simple plugin with a clean, generic interface.
http://gstreamer.freedesktop.org/
And for that little bit extra pro look have a look at
PHAT is a collection of GTK+ widgets geared toward pro-audio apps. The goal is to eliminate duplication of effort and provide some standardization (well, at least for GTK+ apps). It's open source software, licensed under the GNU GPL, version 2.0 or later.
Widgets include:
Fanslider "Vertical & Horizontil"
Keyboard
Knobs
DPMMeter
PPM Meter
VU Meter
And some type of midi drumpad?
Hope that helps
http://phat.berlios.de/
Screenshot: http://developer.berlios.de/dbimage.php?id=2738 |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|