Class FFmpegLoader
Used to initialize the ffmpeg bindings
Inherited Members
Namespace: FFmpeg
Assembly: FFmpeg.dll
Syntax
public static class FFmpegLoader
Methods
View SourceInitialize(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")