[SOLVED] QVideoFrame and MetaData
-
I am trying to get the MetaData out of a QVideoFrame.
The documentation is not helpful about how to do this though:
http://doc.qt.io/qt-5/qvideoframe.html#metaData
http://doc.qt.io/qt-5/qvideoframe.html#setMetaData
http://doc.qt.io/qt-5/qvideoframe.html#availableMetaDataClearly by the above documentation there is potentially MetaData stored within the video frame, and it can be accessed via some QString, however I cannot figure out what strings I should be passing. Even the function to tell you if there is MetaData available does not tell you what is possible.
Insight into how to get the MetaData from a QVideoFrame would be greatly appreciated. -
Hi and welcome to devnet,
availableMetaData will give you a map containing the key + values of the meta data if there are any associated with the frame. setMetaData and metaData are accessors for specific meta data if you already know the key to access them.
-
It might be a bit short, indeed. You are welcome to improve it and submit a patch to Qt :)