[Interest] Video Recording of QQuickView

Lopes Yoann Yoann.Lopes at theqtcompany.com
Mon Sep 21 12:50:17 CEST 2015


> On 18 Sep 2015, at 21:55, Jérôme Godbout <jerome at bodycad.com> wrote:
> 
> Hi,
> I have a built-in screen capture that use the QQuickView::grabWindow() function inside my Qml application. I was wondering is there a way to perform a video recording of the content?
> 
> Do I have to take many images and create a video manually or there's something possible to generate a QMediaRecorder and somehow feed the rendering of the QQuickView (probably a texture rendering).
> 
> I was also thinking if a fake QCamera could be created from a framebuffer or the texture. That would be sweet to create a fake camera from the view, this way the normal QtMultimedia modules could be used directly.

No, you won’t be able to do that with Qt Multimedia. You’ll have to encode the video yourself using another library, e.g. FFmpeg.

—
Yoann



More information about the Interest mailing list