gstreamer/tests/examples/gl/qt/qglwtextureshare
Matthew Waters df7016553e gl/examples/qt: restrict the GL API to opengl where needed
Until the examples are ported to opengl3/gles2, they will not work with any
other GL api.
2016-03-17 16:48:19 +11:00
..
.gitignore gl/examples: gitignore generated files 2014-07-02 17:38:13 +10:00
AsyncQueue.h gl/examples: move to -bad 2014-04-29 16:40:08 +10:00
cocoa_utils.mm gl/qt/examples: update for NSOpenGL -> CGL change 2015-01-23 16:12:24 +11:00
gstthread.cpp examples: Fix Qt/GL qglwtextureshare example for X11 2014-09-29 00:39:07 +10:00
gstthread.h examples: Fix Qt/GL qglwtextureshare example for X11 2014-09-29 00:39:07 +10:00
main.cpp gl/examples/qt: restrict the GL API to opengl where needed 2016-03-17 16:48:19 +11:00
pipeline.cpp gl/examples: update qt examples for api changes 2015-06-15 16:47:15 +10:00
pipeline.h examples: Fix Qt/GL qglwtextureshare example for X11 2014-09-29 00:39:07 +10:00
qglrenderer.cpp gl/examples: update qt examples for api changes 2015-06-15 16:47:15 +10:00
qglrenderer.h gl/examples: move to -bad 2014-04-29 16:40:08 +10:00
qglwtextureshare.pro gl/examples: update qt examples for api changes 2015-06-15 16:47:15 +10:00
README examples: Fix Qt/GL qglwtextureshare example for X11 2014-09-29 00:39:07 +10:00

Requires: >= Qt 5.1 for the x11extras module (or else you need to
get x11extras from gitorious yourself)

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, 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

I would appreciate any feedback and improvement suggestions for this
example.

Have fun :-)
Andrey Nechypurenko (andreynech@gmail.com)