📄
src/Infrastructure/Ffmpeg/ServiceCollectionExtensions.cs
using Microsoft.Extensions.DependencyInjection; using Slopper.Domain; namespace Slopper.Infrastructure.Ffmpeg; public static class ServiceCollectionExtensions { public static IServiceCollection AddFfmpegServices(this IServiceCollection services) => services .AddMemoryCache() .AddTransient<IClipExtractor, ClipExtractor>() .AddTransient<ISubtitleReader, SubtitleReader>() .AddTransient<IFrameExtractor, FrameExtractor>(); }