Get video information for .NET (wrapper for ffprobe tool). Provides details about file media streams: format, codecs, video resolution and frame rate, duration, custom tags etc. NReco.VideoInfo nuget can be used for free in non-SaaS apps that have only one single-server production deployment. This nuget package includes ffprobe.exe (it is extracted on the first use automatically - you don't need to deploy ffprobe separately) and therefore can be used only on Windows. For cross-platform deployments NReco.VideoInfo.LT nuget should be used instead. How to use: var ffProbe = new NReco.VideoInfo.FFProbe(); var videoInfo = ffProbe.GetMediaInfo(pathToVideoFileOrUrl); Console.WriteLine(videoInfo.FormatName); Console.WriteLine(videoInfo.Duration); More info and online demo: https://www.nrecosite.com/video_info_net.aspx
$ dotnet add package NReco.VideoInfoNo README available.