title: Displaying WebCam video with Qt
body: <p>I'm using Qt 4.5 (2009.03) on Linux Gnome (Ubuntu 9.04) and would like to display video captured by my webcam in a Phonon::VideoWidget of my Qt application. </p>
  
  <p>I have a first implementation using the v4l2 API where I do the YUV2 to RGB conversion and fill a QImage my self. It works well but it is not very efficient. A collegue used gStreamer to do the same thing and it was much much faster. </p>
  
  <p>Since then I found out about phonon and would like to use it. Everything is configured and set up except for the binding to the webcam device as source.  </p>
  
  <p>I should create a MediaSource object but I don't know how to configure it. Any help would be greatly valuable.</p>
  
  <p>Edit: The <a href="https://doc.qt.io/qt-4.8/phonon-overview.html" rel="nofollow noreferrer">Phonon overview</a> explains that it is not supported yet. But I need a solution.</p>