[Interest] QMediaCaptureSession capture from QGraphicsScene?

David M. Cotter dave at kjams.com
Wed Jun 19 20:14:27 CEST 2024


If i have a QGraphicsScene (not necessarily connected to a view, or if required, an OFFSCREEN view), can i set its output as the input to a QMediaCaptureSession?

I see i can connect a QWindowCapture, but must that window be showing? can that window be invisible? eg: h.264 output in the background, unrelated to the showing (visible) windows?

I had asked this question <https://forum.qt.io/topic/138386/export-h-264-from-qgraphicsscene/6> a couple years ago, but times have changed and i wonder if it is now possible?

if it is not possible from QGraphicsScene directly, then how about a temporary buffer of QImage? Can i feed QMediaCaptureSession a QImageCapture class, then feed the QImageCapture class a series of QImage or QVideoFrame refs?

is there sample code for sending in-memory images into QMediaCaptureSession ?



-Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20240619/6b1eef4a/attachment.htm>


More information about the Interest mailing list