From a28844e9b71420ecafd9f9f1a85ca4daab97c5fc Mon Sep 17 00:00:00 2001 From: Mathis HERRIOT <197931332+0x485254@users.noreply.github.com> Date: Wed, 28 Jan 2026 14:45:41 +0100 Subject: [PATCH] refactor: replace `outputOptions` with `addOutputOptions` in video processor strategy - Updated FFmpeg command to use `addOutputOptions` for improved readability and consistency. --- backend/src/media/strategies/video-processor.strategy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/media/strategies/video-processor.strategy.ts b/backend/src/media/strategies/video-processor.strategy.ts index e2c8aa1..57cb393 100644 --- a/backend/src/media/strategies/video-processor.strategy.ts +++ b/backend/src/media/strategies/video-processor.strategy.ts @@ -37,13 +37,13 @@ export class VideoProcessorStrategy implements IMediaProcessorStrategy { .toFormat("webm") .videoCodec("libvpx-vp9") .audioCodec("libopus") - .outputOptions("-crf 30", "-b:v 0"); + .addOutputOptions("-crf", "30", "-b:v", "0"); } else { command = command .toFormat("mp4") .videoCodec("libaom-av1") .audioCodec("libopus") - .outputOptions("-crf 34", "-b:v 0", "-strict experimental"); + .addOutputOptions("-crf", "34", "-b:v", "0", "-strict", "experimental"); } command