From 81c44704646465cf54d6f146e31b34a101f8354a Mon Sep 17 00:00:00 2001 From: dakerboul Date: Mon, 10 Mar 2025 17:23:52 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9marrer=20la=20cr=C3=A9ation=20de=20vid?= =?UTF-8?q?=C3=A9o=20en=20arri=C3=A8re-plan=20pour=20am=C3=A9liorer=20la?= =?UTF-8?q?=20r=C3=A9activit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/video/videoManager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/videoManager.js b/src/video/videoManager.js index afbe683..f098dfc 100644 --- a/src/video/videoManager.js +++ b/src/video/videoManager.js @@ -64,8 +64,8 @@ async function createVideoWithList(projectId, pathList, duration) { // Commande ffmpeg pour créer la vidéo const ffmpegCommand = `ffmpeg -r ${frameRate} -f concat -safe 0 -i ${tempFile} -vsync vfr -pix_fmt yuv420p ${outputVideo}`; console.log('Running ffmpeg command:', ffmpegCommand); - execSync(ffmpegCommand); - console.log('Video created successfully:', outputVideo); + execSync(ffmpegCommand, { stdio: 'ignore', detached: true }); + console.log('Video creation started in background:', outputVideo); return outputVideo; } catch (error) { console.error('Error creating video:', error);