The Background: I have a python script that generates a bunch of images (png format, minimum of several hundred), runs ffmpeg to turn them into a short video, and then puts all of the images into a zip archive so I can go back if I find any strange or interesting things where I want the individual frame.
The Issue: Originally the zip portion read as zip -q -T -m output *.png
but that suppressed all the output, including the statement as to whether the file is ok. Is there a way to suppress the large number of updating: Stars0053.png (deflated 5%)
without suppressing the output of the -T
switch?
-T
output line as well. Is the >/dev/null maybe applying to the output of both zip and grep?zipfile
module from Python's standard lib can do what you want (it has atestzip()
method).