Hi!

I need video capture from web-camera (desktop application), under Windows 7 and Linux Mint. How to enumerate devices and run frames loop - I can't find it, and for begin I tryed execute this trivial code:

Qt Code:
  1. #include <QtGui/QApplication>
  2. #include <phonon/VideoPlayer>
  3. #include <QLabel>
  4. #include <QUrl>
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8. QApplication a(argc,argv);
  9. a.setApplicationName("test");
  10. QLabel l;
  11. Phonon::VideoPlayer* player = new Phonon::VideoPlayer(Phonon::VideoCategory,&l);
  12. player->play(QUrl::fromLocalFile("d:\\test.avi"));
  13. l.show();
  14.  
  15. return a.exec();
  16. }
To copy to clipboard, switch view to plain text mode 

Under Windows 7 this code doesn't work. Just blank window, no video.
Under Linux Mint this code doesn't compile (after adding QT += phonon in pro-file).

What I am doing wrong? Qt version: 4.8.2

Thank you in advance for your help.