From 978680e5c6455328e4893abf6cab77a1435c73f5 Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Sat, 29 Mar 2025 14:09:52 +0300 Subject: [PATCH] mpegize: remove processed raw files raw files are save in tmpfs and consume RAM, to avoid extra RAM-pressure remove these files after they are processed and not needed anymore. --- mpegize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mpegize.py b/mpegize.py index 056e033..e8d6835 100755 --- a/mpegize.py +++ b/mpegize.py @@ -524,6 +524,7 @@ class Mpegize: '-T', n]) # -T Output TIFF subprocess.run(['convert', base+'.tiff', base+'.jpeg']) os.unlink(base+'.tiff') + os.unlink(n) os.rename(base+'.jpeg', m.source+"/"+base+'.jpeg.sv') m = Mpegize()