mhaowork / amblegpt

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

Remove video clip after frame extraction #2

Open skrashevich opened 7 months ago

skrashevich commented 7 months 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 7 months ago

temp files should get cleaned up automatically.

... on system reboot :)

mhaowork commented 7 months 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."