DefaultAlignedVideoEncoderFactory

class DefaultAlignedVideoEncoderFactory(eglContext: EglBase.Context?, enableIntelVp8Encoder: Boolean = true, enableH264HighProfile: Boolean = false, resolutionAdjustment: ResolutionAdjustment) : VideoEncoderFactory

The main difference with the standard DefaultAlignedVideoEncoderFactory is that this fixes issues with resolutions that are not aligned (e.g. VP8 requires 16x16 alignment). You can set the alignment by setting resolutionAdjustment. Internally the resolution during streaming will be cropped to comply with the adjustment. Fallback behaviour is the same as with the standard DefaultVideoEncoderFactory and it will use the SW encoder if HW fails or is not available.

Original source: https://github.com/shiguredo/sora-android-sdk/blob/3cc88e806ab2f2327bf3042072 e98d6da9df4408/sora-android-sdk/src/main/kotlin/jp/shiguredo/sora/sdk/codec/SimulcastVideoEnco derFactoryWrapper.kt#L18

Constructors

Link copied to clipboard
constructor(eglContext: EglBase.Context?, enableIntelVp8Encoder: Boolean = true, enableH264HighProfile: Boolean = false, resolutionAdjustment: ResolutionAdjustment)

Functions

Link copied to clipboard
open override fun createEncoder(info: VideoCodecInfo): VideoEncoder?

Creates an encoder for the given video codec.

Link copied to clipboard

Enumerates the list of supported video codecs. This method will only be called once and the result will be cached.

Inherited functions

Link copied to clipboard

Returns a VideoEncoderSelector if implemented by the VideoEncoderFactory, null otherwise.

Link copied to clipboard

Enumerates the list of supported video codecs that can also be tagged with implementation information. This method will only be called once and the result will be cached.