How intercept comming frames from camera
I capture video from webcam and record it using QMediaRecorder.
Which way existed that I can do 2 below actions ?
- catch every frame comming from camera
- manipulate that frame
One of usecases is that I wnat to do is, magnifying the video before saving on disk (and also show it when saving)
I use QVideoProbe but I'm not lucky.
In blow code, "ctrl" is null, so there is no signal from video probe.
@ bool res = videoProbe->setSource(mediRecorder);
QMediaObject *obj = mediaRecorder->mediaObject();
QMediaService *srv = obj->service();
QMediaControl ctrl = srv->requestControl<QMediaVideoProbeControl>();@
The answer is that implementing a custom class of QAbstractVideoSurface
Is there any demo code for that?
take a look on examples/multimediawidgets/customvideowidget
I am using it under Android, so the QWidget is not works, I want to use qml to capture each frame of the video that provided by the rear camera, how to do that.
It's solved, refer to "The QCamera doesn’t works with QVideoProbe under Win32.