QVideoEncoderSettingsControl

The QVideoEncoderSettingsControl class provides access to the settings of a media service that performs video encoding. More

Inheritance diagram of PySide2.QtMultimedia.QVideoEncoderSettingsControl

Detailed Description

If a QMediaService supports encoding video data it will implement QVideoEncoderSettingsControl . This control provides information about the limits of restricted video encoder options and allows the selection of a set of video encoder settings as specified in a QVideoEncoderSettings object.

The functionality provided by this control is exposed to application code through the QMediaRecorder class.

The interface name of QVideoEncoderSettingsControl is org.qt-project.qt.videoencodersettingscontrol/5.0 as defined in QVideoEncoderSettingsControl_iid .

class PySide2.QtMultimedia.QVideoEncoderSettingsControl([parent=None])
param parent

PySide2.QtCore.QObject

Create a new video encoder settings control object with the given parent .

PySide2.QtMultimedia.QVideoEncoderSettingsControl.setVideoSettings(settings)
Parameters

settingsPySide2.QtMultimedia.QVideoEncoderSettings

Sets the selected video encoder settings .

See also

videoSettings()

PySide2.QtMultimedia.QVideoEncoderSettingsControl.supportedVideoCodecs()
Return type

list of strings

Returns the list of supported video codecs.

PySide2.QtMultimedia.QVideoEncoderSettingsControl.videoCodecDescription(codec)
Parameters

codec – str

Return type

str

Returns a description of a video codec .

PySide2.QtMultimedia.QVideoEncoderSettingsControl.videoSettings()
Return type

PySide2.QtMultimedia.QVideoEncoderSettings

Returns the video encoder settings.

The returned value may be different tha passed to setVideoSettings() if the settings contains the default or undefined parameters. In this case if the undefined parameters are already resolved, they should be returned.