内容表

上一话题

QVideoDeviceSelectorControl

下一话题

QVideoEncoderSettingsControl

QVideoEncoderSettings

QVideoEncoderSettings class provides a set of video encoder settings. 更多

Inheritance diagram of PySide2.QtMultimedia.QVideoEncoderSettings

概要

函数

详细描述

视频编码器设置对象用于指定视频编码器设置使用通过 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 setEncodingSettings() 函数。

QVideoEncoderSettings videoSettings;
videoSettings.setCodec("video/mpeg2");
videoSettings.setResolution(640, 480);
recorder->setVideoSettings(videoSettings);
											
class QVideoEncoderSettings

QVideoEncoderSettings(other)

param other

QVideoEncoderSettings

Constructs a null video encoder settings object.

Constructs a copy of the video encoder settings object other .

PySide2.QtMultimedia.QVideoEncoderSettings. bitRate ( )
返回类型

int

Returns bit rate of the encoded video stream in bits per second.

另请参阅

setBitRate()

PySide2.QtMultimedia.QVideoEncoderSettings. codec ( )
返回类型

unicode

Returns the video codec.

另请参阅

setCodec()

PySide2.QtMultimedia.QVideoEncoderSettings. encodingMode ( )
返回类型

EncodingMode

返回视频编码模式。

另请参阅

setEncodingMode() EncodingMode

PySide2.QtMultimedia.QVideoEncoderSettings. encodingOption ( option )
参数

option – unicode

返回类型

object

Returns the value of encoding option .

PySide2.QtMultimedia.QVideoEncoderSettings. encodingOptions ( )
返回类型

Returns the all the encoding options as QVariantMap .

PySide2.QtMultimedia.QVideoEncoderSettings. frameRate ( )
返回类型

qreal

返回视频帧速率。

另请参阅

setFrameRate()

PySide2.QtMultimedia.QVideoEncoderSettings. isNull ( )
返回类型

bool

Identifies if a video encoder settings object is uninitalized.

Returns true if the settings are null, and false if they are not.

PySide2.QtMultimedia.QVideoEncoderSettings. __ne__ ( other )
参数

other QVideoEncoderSettings

返回类型

bool

Determines if other is of equal value to a video encoder settings object.

Returns true if the settings objects are not of equal value, and false if they are of equal value.

PySide2.QtMultimedia.QVideoEncoderSettings. __eq__ ( other )
参数

other QVideoEncoderSettings

返回类型

bool

Determines if other is of equal value to a video encoder settings object.

Returns true if the settings objects are of equal value, and false if they are not of equal value.

PySide2.QtMultimedia.QVideoEncoderSettings. quality ( )
返回类型

EncodingQuality

返回视频编码品质。

另请参阅

setQuality()

PySide2.QtMultimedia.QVideoEncoderSettings. resolution ( )
返回类型

QSize

Returns the resolution of the encoded video.

另请参阅

setResolution()

PySide2.QtMultimedia.QVideoEncoderSettings. setBitRate ( bitrate )
参数

bitrate int

Sets the bit rate of the encoded video stream to value .

另请参阅

bitRate()

PySide2.QtMultimedia.QVideoEncoderSettings. setCodec ( arg__1 )
参数

arg__1 – unicode

Sets the video codec .

另请参阅

codec()

PySide2.QtMultimedia.QVideoEncoderSettings. setEncodingMode ( arg__1 )
参数

arg__1 EncodingMode

Sets the video encoding mode .

ConstantQualityEncoding is set, the quality encoding parameter is used and bit rate is ignored, otherwise the bitrate is used.

The rest of encoding settings are respected regardless of encoding mode.

另请参阅

encodingMode() EncodingMode

PySide2.QtMultimedia.QVideoEncoderSettings. setEncodingOption ( option , value )
参数
  • option – unicode

  • value – object

Set the encoding option value .

The supported set and meaning of encoding options are system and selected codec specific.

PySide2.QtMultimedia.QVideoEncoderSettings. setEncodingOptions ( options )
参数

options

Replace all the encoding options with options .

The supported set and meaning of encoding options are system and selected codec specific.

PySide2.QtMultimedia.QVideoEncoderSettings. setFrameRate ( rate )
参数

rate qreal

Sets the video frame rate .

A value of 0 indicates the encoder should make an optimal choice based on what is available from the video source and the limitations of the codec.

另请参阅

frameRate()

PySide2.QtMultimedia.QVideoEncoderSettings. setQuality ( quality )
参数

quality EncodingQuality

Sets the video encoding quality .

Setting the video quality parameter allows backend to choose the balanced set of encoding parameters to achieve the desired quality level.

quality settings parameter is only used in the constant quality encoding mode quality settings parameter is only used in the constant quality encoding mode .

另请参阅

quality()

PySide2.QtMultimedia.QVideoEncoderSettings. setResolution ( arg__1 )
参数

arg__1 QSize

设置 resolution of the encoded video.

An empty QSize indicates the encoder should make an optimal choice based on what is available from the video source and the limitations of the codec.

另请参阅

resolution()

PySide2.QtMultimedia.QVideoEncoderSettings. setResolution ( width , height )
参数
  • width int

  • height int

设置 width and height of the resolution of the encoded video.

这是重载函数。