
0 have low recall and high precision, 1 has higher recall, 2 strict_level: level 0 execution may be faster than level 1 and level 2 is Single file check ignores options -i,-m,-p,-e,-c,-t Queue, default is 120 sec, you need to raise theĭefault when working with video files (usually) bigger T K, -timeout K Number of seconds to wait for new performed checks in Single file execution does not take advantage t T, -threads T number of parallel threads used for speedup, default ImageMagick idenitfy, 1 Pillow library+ImageMagick, 2 Uses different apporach for checking images depending x E, -err-detect E Execute ffmpeg decoding with a specific err_detect e, -disable-extra Ignore extra image extensions (psd, xcf. m, -enable-media Enable check for audio/video files Jpeg format too, you need to set high Z values


v, -version show program's version number and exitĭetects when files contains a byte sequence of at c X, -csv X Save bad files details on csv file X h, -help show this help message and exit Usage: check_mi.py Ĭhecks integrity of Media files (Images, Video, Audio). In the case you know ways to instruct Pillow, Wand and FFmpeg to be stricter when decoding, please tell me.

Warning, image, audio and video formats are very resilient to defects and damages for this reason the tool cannot detect all the damaged files.Ĭheck-mi is able, with 100% confidence, to spot files that have broken header/metadata, truncated image files (with strict_level >0), and device i/o errors.Ĭheck-mi is, usually, not able to detect all the minor damages-e.g. The tool tests file integrity using common libraries (Pillow, ImageMagik, FFmpeg) and checking when they are effectively able to decode the media files. You can check the integrity of a single file, or set of files in a folder and subfolders recursively, finally you can optionally output the list of bad files with their path and details in CSV format.

comes with bugfixes :-)Ĭheck-mi is a Python 3 script (tested with Python 3.8) that automatically checks the integrity of media files (pictures, video, audio).
