QVideoEncoderSettings Class

The QVideoEncoderSettings class provides a set of video encoder settings. More...

Header: #include <QVideoEncoderSettings>
qmake: QT += multimedia

Detailed Description

A video encoder settings object is used to specify the video encoder settings used by QMediaRecorder. Video encoder settings are selected by constructing a QVideoEncoderSettings object, setting the desired properties and then passing it to a QMediaRecorder instance using the QMediaRecorder::setEncodingSettings() function.

 QVideoEncoderSettings videoSettings;
 videoSettings.setCodec("video/mpeg2");
 videoSettings.setResolution(640, 480);

 recorder->setVideoSettings(videoSettings);

See also QMediaRecorder and QVideoEncoderSettingsControl.