Media Organizer
Organize photos, videos, audio, and documents into a YYYY/MM/DD folder structure based on creation dates extracted from EXIF, FFmpeg, ID3, and document metadata.
CLI Usage
USAGE:
media_organizer [OPTIONS] --source <SOURCE_FOLDER> --destination <DESTINATION_FOLDER>
OPTIONS:
-c, --copy Copy the files instead of moving them.
-d, --destination <DESTINATION_FOLDER> The destination folder of sorted media.
-f, --file-type <FILE_TYPE> The file type to sort. [default: *]
-h, --help Print help information
-s, --source <SOURCE_FOLDER> The absolute path to the source folder of the media to be sorted.
-V, --version Print version information
-v, --verbose Print log output to the terminal.
-y, --dry-run Dry-run with statistics but without actually copying or moving.
-l, --log-saved Log each saved file in a log-file.
--dimensions Append width x height dimensions to image and video filenames.
--categorize Separate media into category subfolders (photos, video, audio, documents).
Example CLI usage
To quickly organize photos in the source folder, run the following command to output them into the default destination directory.
While developing with cargo, forward the flags.
Features
-
Organize photos, videos, audio, and documents in a folder structure based off creation dates.
-
Organize a single media file, or a folder containing unorganized media files.
-
Photos organized based off of EXIF creation dates.
- Whitelisted photo file types. ("tiff", "TIFF", "heif", "HEIF", "HEIC", "heic", "AVIF", "avif", "jpeg", "jpg", "JPEG", "JPG", "HEIC", "heic", "PNG", "png", "webp", "WEBP", "dng", "DNG", "gif", "GIF", "raw", "RAW")
-
Video organized based off of FFMPEG creation dates.
- Whitelisted video file types. ("mp4", "MP4", "mov", "MOV", "avi", "AVI")
-
Audio organized based off of ID3 recorded dates.
- Whitelisted audio file types. ("mp3", "MP3", "wav", "WAV", "aiff", "AIFF", "m4a", "M4A", "flac", "FLAC")
-
Documents organized based off of embedded metadata creation dates (EPUB, PDF, DOCX, ODT, PPTX, XLSX) or filesystem dates (TXT, MD, RTF, MOBI).
- Whitelisted document file types. ("doc", "DOC", "docx", "DOCX", "pdf", "PDF", "epub", "EPUB", "mobi", "MOBI", "txt", "TXT", "md", "MD", "odt", "ODT", "rtf", "RTF", "pptx", "PPTX", "xlsx", "XLSX")
-
User provides source folder of unorganized media. Will move files to a default
sorteddirectory in the directory where the binary was run. The output folders will be the respective creation dates on the media.
-
-
Allow configurable destination folder.
- Use the
--destinationflag.
- Use the
-
Organize specific file types. Default to any filetype.
-
Option to copy files or move files.
-
Creation of file paths from file creation date as an organizer fallback.
-
Optionally categorize files into type subfolders (photos, video, audio, documents) with
--categorize. -
Exposed media_info as a new crate.
Dependencies
For ffmpeg-next package, follow this guide
The version of ffmpeg-next should correlate to the version of ffmpeg installed on the system.
If on windows be sure to install the shared version of FFMPEG!