Extracting thumbnail on video saving

This commit is contained in:
2023-03-07 12:31:51 +00:00
parent 642efe934a
commit 43401629eb

View File

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