From 3bbb56e609d24e7dac51eb83ab3a9f41c90bb990 Mon Sep 17 00:00:00 2001 From: ProgramminCat <72707293+ProgramminCat@users.noreply.github.com> Date: Fri, 3 Jan 2025 19:56:53 -0500 Subject: [PATCH] change video duration limit from 60sec to 3 minutes --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index fae25ac..1e68fb6 100644 --- a/app.py +++ b/app.py @@ -1066,10 +1066,10 @@ def upload_file(): try: video = VideoFileClip(temp_filepath) duration = video.duration # Duration in seconds - if duration > 60: + if duration > 180: video.close() os.remove(temp_filepath) - return 'Video duration exceeds 60 seconds. Please upload a video that is less than 60 seconds.' + return 'Video duration exceeds 3 minutes. Please upload a video that is less than 3 minutes.' return redirect(request.url) except Exception as e: video.close()