MediaVideoEncoder Class

A video encoder created by MediaCodecBackend.CreateVideoEncoder.

public abstract class MediaVideoEncoder : MediaCodecImplementation
Inheritance
MediaCodecImplementation MediaVideoEncoder

Constructors

NameDescription
MediaVideoEncoder()

MediaVideoEncoder()

protected MediaVideoEncoder()

No documentation is available.

Methods

NameDescription
Encode(VideoFrame, VideoEncoderEncodeOptions)Encodes a frame and returns the chunks that are ready (possibly none). The library closes the frame afterwards.
Flush()Encodes the pending frames and returns the remaining chunks (flush()). The default implementation returns none.

Encode(VideoFrame, VideoEncoderEncodeOptions)

Encodes a frame and returns the chunks that are ready (possibly none). The library closes the frame afterwards.

Parameters

frame VideoFrame
The frame (a clone of the frame given to encode()).
options VideoEncoderEncodeOptions
The options of the encoding of the frame (e.g. a key frame is requested).

Returns

IReadOnlyList<MediaEncodedVideo>

Encodes the pending frames and returns the remaining chunks (flush()). The default implementation returns none.

public virtual IReadOnlyList<MediaEncodedVideo> Flush()