Modifier la fonction createVideoWithList pour accepter la durée et ajuster le frame rate en conséquence
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user