From 5a34860fca1561bd3dc0fc238302cb600ca927d2 Mon Sep 17 00:00:00 2001 From: Amatsugu Date: Sat, 5 Jul 2025 22:12:27 -0400 Subject: [PATCH] Configure ffmpeg location --- AobaCore/Services/ThumbnailService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AobaCore/Services/ThumbnailService.cs b/AobaCore/Services/ThumbnailService.cs index cafd77a..8c473cd 100644 --- a/AobaCore/Services/ThumbnailService.cs +++ b/AobaCore/Services/ThumbnailService.cs @@ -132,6 +132,11 @@ public class ThumbnailService(IMongoDatabase db, AobaService aobaService) { opt.WithCustomArgument($"-vf \"crop='min(in_w,in_h)':'min(in_w,in_h)',scale={w}:{w}\" -loop 0 -r 15") .ForceFormat("webp"); + }).Configure(cfg => + { +#if !DEBUG + cfg.BinaryFolder = "/usr/bin"; +#endif }).ProcessSynchronously(); output.Position = 0; return output;