[Interest] QVideoProbe Woes
scorp1us at yahoo.com
Mon Feb 10 18:09:15 CET 2014
Ok thanks. I can work with that.
But, I know very little of GL. How would I convert from GL texture ID to say, a QImage or QVideoFrame? I would suspect that the reason that QVideoProbe is so not cross platform is this very reason, would that be true?
----- Original Message -----
From: Lopes Yoann <Yoann.Lopes at digia.com>
To: Jason H <scorp1us at yahoo.com>
Cc: Interests Qt <interest at qt-project.org>
Sent: Monday, February 10, 2014 10:39 AM
Subject: Re: [Interest] QVideoProbe Woes
On Feb 10, 2014, at 3:54 PM, Jason H wrote:
> No, that was not in the doc. http://qt-project.org/doc/qt-5/qvideoprobe.html
I meant it should be added to the doc.
> This is some seriously distressing news. Basically, I what you are telling me is can't build my app in Qt.
There is another solution that will work everywhere but requires some extra work. You can create a custom QAbstractVideoSurface and you'll get the frames in the present(QVideoFrame) function. From there you can do what you need to do with them, but you will also have to show them on screen yourself.
Bear in mind that the received QVideoFrames don't always contain actual image data (bits() function) but can instead contain an OpenGL texture ID (handle() function).
Senior Software Engineer - Digia, Qt
Visit us on: http://qt.digia.com
More information about the Interest