Extracting thumbnail on video saving
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user