VideoCodecConfig
Video configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.
Constructors
Instantiates a VideoCodecConfig instance from profile and level.
Instantiates a VideoCodecConfig instance from VideoProfileLevelColor.Builder.
Properties
Get default encoder name. If name is null, it won't be possible to start a stream.
The dynamic range profile. It is deduced from the profile. See Also: DynamicRangeProfiles
Video encoder I-frame interval in seconds. This is a best effort as few camera can not generate a fixed frame rate. For live streaming, I-frame interval should be really low. For recording, I-frame interval should be higher. A value of 0 means that each frame is an I-frame. On device with API < 25, this value will be rounded to an integer. So don't expect a precise value and any value < 0.5 will be considered as 0.
Video encoder level. Encoders may not support requested level. In this case, StreamPack fallbacks to default level. ** See ** MediaCodecInfo.CodecProfileLevel
Video output resolution in pixel.
Converts VideoCodecConfig to VideoSourceConfig.
The encoder bitrate in bits/s.
Functions
Copies video configuration with new values
Whether VideoCodecConfig is compatible with VideoCodecConfig.
Whether VideoCodecConfig is compatible with VideoSourceConfig.
Whether configuration is supported by the default encoder. If format is not supported, it won't be possible to start a stream.
Check if this configuration is supported by the specified encoder. If format is not supported, it won't be possible to start a stream.
Rotates video configuration to rotationDegrees from device natural orientation.
Rotates video configuration to rotation from device natural orientation.