Show / Hide Table of Contents

Class FFmpegLoader

Used to initialize the ffmpeg bindings

Inheritance
object
FFmpegLoader
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: FFmpeg
Assembly: FFmpeg.dll
Syntax
public static class FFmpegLoader

Methods

View Source

Initialize(string?, bool)

Initializes the bindings for ffmpeg.

Declaration
public static void Initialize(string? dir = null, bool throwIfFunctionNotFound = true)
Parameters
Type Name Description
string dir

The directory where the libraries are located. Use ';' as seperator for multiple directories. To disable auto search pass "\0" as a directory string.

bool throwIfFunctionNotFound

Whether an exception should be thrown when calling one of the functions couldn't be loaded.

Examples

The following code searches AppContext.BaseDirectory/(ffmpeg/(win-x64|linux-arm32...)) and %PATH% Initialize();
The following code specifies different dirs Initialize("dir1;dir2")
The following code specifies different dirs and disables auto search default dirs Initialize("dir1;dir2;\0")

  • View Source
In this article
Back to top Generated by DocFX