Skip to content

Instantly share code, notes, and snippets.

using System.Net.Mime;
using Xabe.FFmpeg;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
FFmpeg.SetExecutablesPath(@"C:\Temp\Tools\ffmpeg\bin");
app.MapGet("/thumbnail/{filename}", async (string filename, HttpContext context) => {
var i = await FFmpeg.GetMediaInfo($@"C:\Temp\files\{filename}");