Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
To capture image from video frame qml(Qt -5)
bts-007 last edited by
I am using video element from QtMultimedia(qml) to play video. How it is possible to capture a image from video frame in qml. Thank you
Alek Śmierciak last edited by
the only QtMultimedia element that has screen capturing capabilities on its own is CameraCapture, related to camera functionality. Perhaps capturing an image from C++ side is possible through "QGraphicsScene::render":http://qt-project.org/doc/qt-5.0/qtwidgets/qgraphicsscene.html#render or "QGraphicsView::render":http://qt-project.org/doc/qt-5.0/qtwidgets/qgraphicsview.html#render, but I am not sure.
See also "this thread":http://qt-project.org/forums/viewthread/27117 with its "QQuickView::grabWindow":http://qt-project.org/doc/qt-5.0/qtquick/qquickwindow.html#grabWindow recommendation.