            catch (DllNotFoundException)
            {
                return false;
            }
        }

        internal static void EnsureLoaded()
        {
            if (!IsLoaded)
            {
                throw new FFmpegException("The FFmpeg libraries are not loaded. Please call FFmpegLoader.Load() before attempting to use ffmpeg.");
            }
        }
