From 6720ba8c5ffde2b0317bf6dec23d82eed23018b2 Mon Sep 17 00:00:00 2001 From: GuticaStefan Date: Wed, 17 Jun 2026 16:13:20 +0300 Subject: [PATCH] fix nfts thumbnail processing --- .../queue/job-services/thumbnails/nft.thumbnail.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/queue.worker/nft.worker/queue/job-services/thumbnails/nft.thumbnail.service.ts b/src/queue.worker/nft.worker/queue/job-services/thumbnails/nft.thumbnail.service.ts index 711580387..8f2614aee 100644 --- a/src/queue.worker/nft.worker/queue/job-services/thumbnails/nft.thumbnail.service.ts +++ b/src/queue.worker/nft.worker/queue/job-services/thumbnails/nft.thumbnail.service.ts @@ -52,6 +52,11 @@ export class NftThumbnailService { ffmpeg(videoPath) .seek(seek) .takeFrames(1) + // Force YUV420P format to ensure compatibility with the MJPEG encoder. + .videoFilters('format=yuv420p') + // Set strictness to 'unofficial' to allow 'limited range' color inputs, + // which prevents the encoder from rejecting standard video streams. + .outputOptions(['-strict', 'unofficial']) .saveToFile(outputPath) .on('start', (commandLine) => { this.logger.log('Spawned ffmpeg with command: ' + commandLine);