mhaowork / amblegpt

Video surveilance footage analyst powered by GPT-4o
MIT License
118 stars 23 forks source link

Remove video clip after frame extraction #2

Open skrashevich opened 1 year ago

skrashevich commented 1 year ago

Modified the download_video_clip_and_extract_frames function in mqtt_client.py to delete the downloaded video clip after the frames have been extracted. This change helps to manage disk space by removing unnecessary files after they have been processed.

skrashevich commented 1 year ago

temp files should get cleaned up automatically.

... on system reboot :)

mhaowork commented 1 year ago

temp files should get cleaned up automatically.

... on system reboot :)

I thought it is once exiting the with context?

"On completion of the context or destruction of the temporary directory object, the newly created temporary directory and all its contents are removed from the filesystem."