Skip to content

Commit

Permalink
change video duration limit from 60sec to 3 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgramminCat committed Jan 4, 2025
1 parent 3259893 commit 3bbb56e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3bbb56e

Please sign in to comment.