Table of Contents

Class FFmpegVideoBackendFactory

Namespace
Stride.Video.Backends
Assembly
Stride.Video.dll
public sealed class FFmpegVideoBackendFactory : VideoBackendFactory
Inheritance
object
FFmpegVideoBackendFactory
Inherited Members
Extension Methods

Properties

ForceSoftwareDecode

Disable HW-accelerated decode (D3D11VA on Windows D3D11) for the next backend instance. Tests use this to deterministically exercise the SW path even on hosts where HW decode would otherwise auto-engage.

public static bool ForceSoftwareDecode { get; set; }

Property Value

bool

Name

Stable identifier (e.g. "FFmpeg", "MediaEngine", "MediaCodec"). Used for PreferredBackendName matching.

public override string Name { get; }

Property Value

string

Priority

Higher value wins when multiple supported backends are registered and no preferred backend is set.

public override int Priority { get; }

Property Value

int

Methods

CreateBackend(VideoInstance)

Construct a backend bound to instance. Called once per VideoInstance.

public override VideoBackend CreateBackend(VideoInstance instance)

Parameters

instance VideoInstance

Returns

VideoBackend

InitializeSystem(VideoSystem)

Per-process / per-VideoSystem initialization (e.g. MFStartup, FFmpeg library preload). Called once when this factory is selected as the active backend. Default: no-op.

public override void InitializeSystem(VideoSystem system)

Parameters

system VideoSystem

IsSupported(GraphicsDevice)

Whether this backend can run on the current device/platform.

public override bool IsSupported(GraphicsDevice device)

Parameters

device GraphicsDevice

Returns

bool