A simple .NET utility to get details like duration, resolution, and FPS from a video file. This package is part of the tool suite from FrameNet.ai, the effortless AI video editor.
$ dotnet add package FrameNet.VideoUtils
A simple .NET utility for getting video file details like duration, resolution, and frame rate. It works in any .NET Standard 2.0 compatible project.
This package provides a single, easy-to-use async function to quickly analyze local video files, a common task in video processing workflows. It requires ffmpeg to be installed and available in your system's PATH.
This utility is proudly developed and maintained by the team at FrameNet.ai. Our mission is to make video creation effortless through powerful, AI-driven tools.
While this package helps developers work with video programmatically, our platform offers a full suite of free tools for creators:
Install the package directly from NuGet using the .NET CLI:
dotnet add package FrameNet.VideoUtils
Or via the NuGet Package Manager console:
Install-Package FrameNet.VideoUtils
The library exports one primary async function, GetVideoDetailsAsync().
using FrameNet.VideoUtils;
using System;
using System.Threading.Tasks;
public class Example
{
public static async Task Main()
{
var details = await VideoTasks.GetVideoDetailsAsync(@"C:\path\to\your\video.mp4");
if (details != null)
{
Console.WriteLine($"Duration: {details.DurationSeconds}s");
Console.WriteLine($"Resolution: {details.Dimensions.Width}x{details.Dimensions.Height}");
Console.WriteLine($"Frame Rate: {details.Fps} fps");
}
else
{
Console.WriteLine("Could not process video.");
}
}
}
FrameNet.ai is a comprehensive suite of AI tools designed to simplify and automate your video creation workflow, from text-to-video generation to automatic subtitling.