Off course the question arises: "Why do not simply use QtGStreamer?" Ya, actually this should be the way to do. Since redoing it by your self is often useless. The downside is: currently only gstreamer-0.10 is supported and on updates this will not change. And the installation on Windows is difficult.
In QtGstreamer there are principally two ways of integrating a video into a GUI:
1) QGst::Ui::GraphicsVideoWidget (in conjunction with QGst::Ui::GraphicsVideoSurface)
2) QGst::Ui::VideoWidget
Here is an example for option 1:
qtgraphicswidget.pro
main.cpp:
And here is an example for option 2:
main.cpp:
The project file can be the sane as for option 1
No comments:
Post a Comment