Motion Scout 50
מוצא קבצי מושן מתחת למגבלת גודל שאתם בוחרים, ומאפשר לעבור עליהם לפני ההעתקה.
עובד אפשר להוריד אותו. למטה יש הרצה לדוגמה מהטרמינל.
הבעיה
לשלוף את כל קבצי המושן מתחת למגבלת גודל מתוך שנים של תיקיות פרויקטים זה יום שלם של מיון ידני.
מה בניתי
כלי שורת פקודה שמוצא את קבצי המושן, מסביר כל בחירה, ומעתיק רק את מה שמתאים, בלי לגעת בקבצי המקור.
- מסביר למה כל קובץ נבחר
- קבצים לא ברורים עוברים לבדיקה
- מעתיק, לא מזיז ולא מוחק
יכולות ומגבלות
נבנה ונבדק
- Scores each video as motion or not, from name, folder, format and duration, and prints the reasons.
- Sorts into ready, too large and review. Unsure means review, never a guess.
- Dry run by default; --apply copies, never moves, deletes or overwrites.
- Optional re-encode with ffmpeg, kept only if the result fits the limit.
- CSV report of every file, its score, reasons and action.
- Skips render cache and proxy folders; refuses an output folder inside a scanned folder.
מגבלות
- Classification reads names and duration, not the picture. Badly named files land in review.
- Tested on Linux with Python 3.13 and ffmpeg 7. macOS and Windows not yet tested.
- Re-encode targets size, not quality: a long clip under a small limit will look soft, or stay in too large.
מתוכנן
Configurable limit, dry run, better classification and no forced network downloads.
איך משתמשים
- Download and unzip. No install: it is one Python file.
- Dry run: python3 motion_scout.py "/path/to/Projects" --out "/path/to/Motion under 50MB"
- Read the list and the reasons.
- Run again with --apply to copy, add --reencode to fit oversized motion files (needs ffmpeg).
- Open motion-scout-report.csv. To remove the tool, delete its folder.
איך זה עובד
- Standard library only. ffprobe for duration when present; nothing is required or downloaded.
- Destination names are checked before every write, so nothing is ever overwritten.
- Re-encode: bitrate budget from the clip's duration, two attempts, result kept only if it is under the limit.
- Tests make their own clips with ffmpeg and compare source checksums before and after.
גרסאות שנבדקו ומגבלות
- עבר Dry run writes nothing; classes right on synthetic clips Linux, Python 3.13, ffmpeg 7
- עבר Apply copies; source checksums unchanged Linux, Python 3.13
- עבר Second run never overwrites Linux, Python 3.13
- עבר Re-encode lands under the limit Linux, ffmpeg 7
- עבר Output inside a source is refused Linux, Python 3.13
- עבר Release: tests rerun from the unzipped package; public scan clean Linux
נבדק לאחרונה: 2026-10-31.
נבדק רק ב-Linux.
פרטים
- קלט
- User-selected folders
- פלט
- Ready files, review queue and CSV report
- רץ ב
- Python 3.9+ on macOS, Linux or Windows. ffmpeg optional. Tested on Linux only so far.
- מקור
- מקורי, נבנה מחדש מאפס