From fcde6549fae26e48559dd07187f9e0efb33eba8d Mon Sep 17 00:00:00 2001 From: biglyderv Date: Mon, 25 Nov 2024 14:12:43 -0500 Subject: [PATCH] s --- form/upload.js | 4 ++-- views/player.ejs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/form/upload.js b/form/upload.js index da378f8..ee4f446 100644 --- a/form/upload.js +++ b/form/upload.js @@ -20,8 +20,8 @@ let main = new Route([auth], async function (req, res, input) { let {path} = req.file; try { - await execP(`ffmpeg -i ${path} videos/${id}.mp4`); - await execP(`ffmpeg -i videos/${id}.mp4 -frames:v 1 videos/${id}.png`); + await execP(`ffmpeg -i ${path} videos/${id}.webm`); + await execP(`ffmpeg -i videos/${id}.webm -frames:v 1 videos/${id}.png`); } catch (err) { return { 'success': false, 'message': 'Video is invalid'} } diff --git a/views/player.ejs b/views/player.ejs index d757e53..f3e16e6 100644 --- a/views/player.ejs +++ b/views/player.ejs @@ -1,7 +1,7 @@ <%- include('header.ejs') -%>

Video

- +
<%= videoData.title %>