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);