Need an option to pause timelapse when print is paused

I have encountered several times where the print is paused due to filament ran out. However, I was not able to change the filament until several days later. During which time, the time-lapse continues to take picture till the entire SD card becomes full (64GB) card. It became so full to the point that the local server stopped running, and performing a "ls" wasn't even possible.

I set the time-lapse interval to 1sec, and usually a 64GB card is enough for a print that lasts 2 to 3 days, but with pause print that lasts 4 to 5 days, it becomes a problem.

May be an option to pause the video when the print is paused will fix this problem.