From 43401629eb5219d8c0a05ca6ad0acf0c6d7f84f6 Mon Sep 17 00:00:00 2001 From: Victor Mylle Date: Tue, 7 Mar 2023 12:31:51 +0000 Subject: [PATCH] Extracting thumbnail on video saving --- backend/src/routers/signvideo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/src/routers/signvideo.py b/backend/src/routers/signvideo.py index 8cf6849..c38a6f5 100644 --- a/backend/src/routers/signvideo.py +++ b/backend/src/routers/signvideo.py @@ -43,6 +43,9 @@ def convert_video(video_filename): # delete the temporary file os.remove(settings.DATA_PATH + "/" + video_filename + ".test") + # create the thumbnail + extract_thumbnail(settings.DATA_PATH + "/" + video_filename) + # endpoint to upload a file and save it in the data folder @router.post("/", status_code=status.HTTP_201_CREATED, response_model=SignVideoOut)