Media-Files-Organizer is a Python program to organize a various media file types by renaming files based on capture date/creation date found in file's metadata.
Image metadata is extracting by using PIL (10.0.0) librairy.
Video metadata is extracting by using Hachoir (3.2.0) librairy.
See INSTALL GUIDE for required dependencies to run this code. All contributions to this project is welcome.
-
For safety, please make sure to backup your important files before put it in the program. This program is tested by me, but I will not be responsible for any file lost or corrupted due to undiscovered bugs.
-
Uncorrected naming may occured because the capture/creation date in file's metadata may refer to the date it is been create in the current working directory.
- JPEG/JPG
- PNG
- HEIC
- MP4
- MOV
-
Install the latest version of Python here, normally, it has pip included
-
Install Pillow librairy
pip install Pillow
-
Install Hachoir librairy
pip install hachoir
From the command line, make sure you are in the directory containing the source code, if not, change the path of the source code accordingly :
python mediaorganizer.py [-d | -h | -f | -m]
Options | Description |
---|---|
None | Equivalent to -d |
-d | Renaming all supported files in a directory and move them to a new directory |
-f | Renaming a specifique file and move it to a new directory |
-m | Display the metadata of a specifique file |
-h | Display help |