How to save QCamera recorded video into file
-
Hi everyone
@QCamera *camera = new QCamera;
QMediaRecorder *recorder = new QMediaRecorder(camera);
camera->setCaptureMode(QCamera::CaptureVideo);
camera->start();
recorder->record();@Please help.
I want to save QCamera recorded video into file stream and get recording progress!
Thank you! -
Hi,
You need to call QMediaRecorder::setOutputLocation(). See http://qt-project.org/doc/qt-5/qmediarecorder.html#details
-
Thank you, but camera doesn't record and doesn't burn durationChanged() event.
My web camera works well.
What is the problem ? -
@GGILOYAN
Am almost certain that you are using a Windows PC, if that is the case you cannot save recorded videos on qt because qt does not support it. It's as simple as that! http://doc.qt.io/qt-5/qtmultimedia-windows.html