Directory DurationStamp is a Python script using FFMPEG,to add file duration-stamps for video/audio files inside the folders, and sub-folders in a given directory. This script can be useful for keeping track of the total duration(run time) of files in each directory and subdirectories.
-
Pattern and mark removal: The script can remove patterns and marks from file and folder names, allowing for cleaner duration-stamps.
-
Zero padding: Directory DurationStamp can add zero padding to the names of files and folders, creating a more uniform naming convention.
-
Duration-stamp removal: If duration-stamps have already been applied, the script can remove them to prevent duplication.
-
Multi-directory support: The script can process multiple directories and generate logs for each one, allowing for easy tracking of across multiple directories.
- Clone the repository.
- Install the required packages: ffmpeg
- Run the script:
python directory_durationstamp.py
- Enter the
<paths_to_the_directories>
exit
to stop- The script will output a log file with the timestamps for each file, folder, and subdirectory in the given directory.
Check out this to see how the script works with your directory.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the developers of the Python programming language and the ffmpeg library, which is used in this script for fetching the duration.