Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Since Phonon is based on gstreamer, the place to look for details is the Phonon source tree (available here: <a href="http://gitorious.org/phonon/import/trees/master" rel="noreferrer">http://gitorious.org/phonon/import/trees/master</a>). For a video player you are most likely going to need a video display widget, such as the <a href="http://gitorious.org/phonon/import/blobs/master/gstreamer/videowidget.h" rel="noreferrer">gstreamer/videowidget.h</a> (<a href="http://gitorious.org/phonon/import/blobs/master/gstreamer/videowidget.cpp" rel="noreferrer">cpp</a>) that in turn used the X11 renderer (<a href="http://gitorious.org/phonon/import/blobs/master/gstreamer/x11renderer.h" rel="noreferrer">gstreamer/x11renderer.h</a>, <a href="http://gitorious.org/phonon/import/blobs/master/gstreamer/x11renderer.cpp" rel="noreferrer">cpp</a>). The sink used is the <a href="http://gstreamer.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-xvimagesink.html" rel="noreferrer">xvimagesink</a>, falling back onto the <a href="http://gstreamer.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-ximagesink.html" rel="noreferrer">ximagesink</a> if the first cannot be created.</p> <p>The basic trick is to overlay the VideoWidget with the video output. The X11 handle needed to do this is retrieved using the <a href="http://doc.trolltech.com/4.6/qwidget.html#winId" rel="noreferrer">QWidget::winId</a> method, which is platform specific (as are the sinks, so no biggie).</p> <p>Also, if overlay is unavailable, a <a href="http://gitorious.org/phonon/import/blobs/master/gstreamer/qwidgetvideosink.h" rel="noreferrer">QWidgetVideoSink</a> is used, which converts the video frames into individual frames for the <a href="http://gitorious.org/phonon/import/blobs/master/gstreamer/widgetrenderer.h" rel="noreferrer">WidgetRenderer</a> class. This class, in turn, makes the current frame available as a QImage object, ready for any type of processing.</p> <p>So to answer your question - <em>use either overlays (as X11Renderer) or extract individual QImages from the video stream (as QWidgetVideoSink)</em>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload