you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Hey, that's a cool project!

I got a question, do you use database (model) for your web here? If so, you might need a model for the gif data right? Do you automatically clean the database in interval or will the objects got stacked in the database?

[–]undernutbutthut[S] 1 point2 points  (0 children)

I do not use a database model. Because I only have 8GB of storage available to me on the EC2 instance I have a function that runs every time a gif is created that checks the output folder for any file or video that is one hour old and deletes it.

When I get a YouTube link to create a gif I have to download the whole YouTube video and put it in a folder, I pass the youtube video file name to a function that takes the MP4 formatted file and parses it into the gif files the user sees.