I'm currently trying to solve a problem in C++ using QT. I am trying to grab a video Frame from a video running in the output stream of a QMediaPlayer and add grayscale to that frame and then send it back to the video Output stream of the mediaplayer.
Grab video Frame ----> Add Gray Scale to frame ---->Send back to output stream
For now I am able to grab the videoFrame using QVideoFrame in QT and modify it. However i am not sure on how to send it back to the media player output stream. I am going through the QT source code but so far no luck.
The same problem can be solved usinng QML however I don't want to go ahead with using QML and instead solve this using C++.
I hope some one here has an Idea on how to do it. Thank you