diff --git a/cmps_hevc_crf18.py b/cmps_hevc_crf18.py index 990a7d6..9ca597b 100755 --- a/cmps_hevc_crf18.py +++ b/cmps_hevc_crf18.py @@ -176,6 +176,7 @@ def main(): errmsg = 'No input files provided' if not files: raise SystemExit(errmsg) + files.sort(key=lambda x: x.stat().st_size) for idx, infile in enumerate(files, 1): logger.info(f"[{idx}/{len(files)}] {infile.name}")