Important: Please read the Qt Code of Conduct -

Getting frame bits data from video stream

  • Hi,

    I'm trying to create a video playback module for an opengl project I have. I want to be able to get the "image data" from each incoming frame as a data buffer or pointer that I can drop into an opengl texture. For still images I use the "bits" property to get the data pointer from a QImage.

    All the examples I've found for video are centered around playing video back in a window. There is the snapshot method (which may not be implemented in 4.8?), but I'm not sure if that would interrupt playback.

    I'm sure there must be a method in there somewhere, but I haven't been able to find it.



Log in to reply