[gstreamer-bugs] [Bug 600797] New: New example illustrates texture sharing between glupload and Qt
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Nov 5 02:10:18 PST 2009
https://bugzilla.gnome.org/show_bug.cgi?id=600797
GStreamer | gst-plugins-gl | unspecified
Summary: New example illustrates texture sharing between
glupload and Qt
Classification: Desktop
Product: GStreamer
Version: unspecified
OS/Version: All
Status: UNCONFIRMED
Severity: enhancement
Priority: Normal
Component: gst-plugins-gl
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: andreynech at gmail.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
Created an attachment (id=146990)
--> (https://bugzilla.gnome.org/attachment.cgi?id=146990)
Example source code
This example illustrates how to integrate Gstreamer GL plugin with
Qt. In particular it uses glupload with fakesink elements to create
texture with decoded video frame. This texture is shared with
QGLWidget derived class, which paints a cube with video texture on
each face.
To compile the example, include and library paths might be adjusted in
.pro file according to your installation of the gstreamer and
corresponding development files. Most probably, the adjustments will
be necessary on Windows.
To run the example simply start executable file after compilation. If
there is no command line arguments provided, then videotestsrc element
will be used to generate video. The following pipeline will be created
in this case:
videotestsrc ! video/x-raw-yuv, width=640, height=480, framerate=(fraction)30/1
! glupload ! fakesink sync=1
It is also possible to provide the video file name as a first command
line parameter, i.e. ./qglwtextureshare myvideo.ogv . In this case,
the following pipeline will be executed:
filesrc location=myvideo.ogv ! decodebin2 ! glupload ! fakesink sync=1
In rare cases, the application crashes on startup. I've seen it only
on Windows so far. Trying to start the example again usually works for
me. I did not find the reasons for this crash yet.
This example is tested on WindowsXP and Debian Testing (squeeze).
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list