radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
352 stars 56 forks source link

System.InvalidOperationException: FFmpeg libraries were already loaded! #89

Closed BladeXR closed 3 years ago

BladeXR commented 3 years ago

Hi,

I just added your nuget to a new project to get info from some video files I wanted, but when setting up FFmpegLoader.FFmpegPath to a custom directory it just says all the time that libraries were already loaded and fails to execute after that.

It runs at least once before starting to give me troubles with this.

Can you give me a hint what can be wrong?

Part of stack trace: System.InvalidOperationException: FFmpeg libraries were already loaded! at FFMediaToolkit.FFmpegLoader.set_FFmpegPath(String value)

Thanks!

BladeXR commented 3 years ago

I managed to get it right by setting FFmpegPath at the very beggining of the app's lifecycle, during startup configuration.

I'll close this issue.