This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
This program manages editing metadata for backupped files. This program was built and tested using macOS 11.2 Big Sur and should work on all macOS and OSX versions. Compatibility with other operating systems is likely but not guaranteed. For more information, search for utility paths and subprocess syntax on your OS.
- ExifTool (reference the install path in
preferences.py > EXIFTOOL_PATH
) - Python (tested with Python 3.9.0, should work with Python 3.6.0 and newer)
- Clone the git repository (using
git clone https://github.com/ahernot/video-backup-utility/
in the terminal/console, or a GUI such as GitHub Desktop) - Open the
~/video-backup-utility/preferences.py
file (using an IDE such as IDLE or VSCode) and reference the following preferences:- The ExifTool utility path (default for macOS is
"/usr/local/bin/exiftool"
). It should be given to you during the install process, or you can find it online. - The file extensions (in lowercase) for original and target files
- The text string which is appended to a target file's name (example:
ORIGINAL="IMG_009.MP4"
>>COMPRESSED="IMG_009 (HEVC).MP4"
). There must be no text placed between the marker (" (HEVC)"
here) and the extension (".MP4"
here). The filename before the marker ("IMG_009"
here) must be the same as that of the original file. The marker is case-sensitive. (" (hevc)"
wouldn't work here).
- The ExifTool utility path (default for macOS is
- Open the
~/video-backup-utility/main.py
file and reference the directory paths:- The path of the folder containing the original files, the metadata of which you wish to copy over to their compressed/backupped counterparts (example:
"ahernot/desktop/original/"
) - The path of the folder containing the compressed/backupped files (example:
"ahernot/desktop/compressed/"
)
- The path of the folder containing the original files, the metadata of which you wish to copy over to their compressed/backupped counterparts (example:
- Open a terminal/console window, and run the command
cd PATH_TO_CLONED_FOLDER
, wherePATH_TO_CLONED_FOLDER
is something like~/video-backup-utility/
- Next, run the command
python main.py
in the terminal window. If you have multiple Python versions installed on your computer, you might want to select one using a the commandpython3.9 main.py
(for Python 3.9 here).