using System.IO; namespace Jellyfin.Plugin.CinemaTrailers4Jellyfins.Services { internal static class FfmpegLocator { private const string JellyfinFfmpeg = "/usr/lib/jellyfin-ffmpeg/ffmpeg"; // Prefer Jellyfin's bundled ffmpeg; fall back to whatever is on PATH. public static string Path => File.Exists(JellyfinFfmpeg) ? JellyfinFfmpeg : "ffmpeg"; } }