Modifier la fonction createVideoWithList pour accepter la durée et ajuster le frame rate en conséquence

This commit is contained in:
2025-03-10 17:08:11 +01:00
parent e9fd9dfaa1
commit 9e850f0090
2 changed files with 5 additions and 3 deletions

View File

@@ -342,7 +342,9 @@ router.post('/videos/render/:video_id', async (req, res) => {
console.log('Path list:', pathList);
res.json({ message: 'Render process started' });
const videoFile = await videoManager.createVideoWithList(project_id, pathList);
duration = results.rows[0].duration;
const videoFile = await videoManager.createVideoWithList(project_id, pathList, duration);
console.log('Video file:', videoFile);
await videoManager.updateVideoFile(videoId, videoFile);