内容表

上一话题

QVideoEncoderSettings

下一话题

QVideoFilterRunnable

QVideoEncoderSettingsControl

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

Inheritance diagram of PySide2.QtMultimedia.QVideoEncoderSettingsControl

详细描述

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 对象。

The functionality provided by this control is exposed to application code through the QMediaRecorder 类。

The interface name of QVideoEncoderSettingsControl is org.qt-project.qt.videoencodersettingscontrol/5.0 作为定义在 QVideoEncoderSettingsControl_iid .

class QVideoEncoderSettingsControl ( [ parent=None ] )
param parent

QObject

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

PySide2.QtMultimedia.QVideoEncoderSettingsControl. setVideoSettings ( settings )
参数

settings QVideoEncoderSettings

Sets the selected video encoder settings .

另请参阅

videoSettings()

PySide2.QtMultimedia.QVideoEncoderSettingsControl. supportedVideoCodecs ( )
返回类型

字符串列表

Returns the list of supported video codecs.

PySide2.QtMultimedia.QVideoEncoderSettingsControl. videoCodecDescription ( codec )
参数

codec – unicode

返回类型

unicode

Returns a description of a video codec .

PySide2.QtMultimedia.QVideoEncoderSettingsControl. videoSettings ( )
返回类型

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.