A script that calculates the total duration of all videos in a directory
and its subdirectories, using `ffprobe` and a progress bar. The result is written to a text file.
- Python 3.10
- ffprobe.exe
- tqdm (for progress bar)
- Install the required packages:
pip install tqdm
- Clone this repository or download the script.
git clone https://github.com/Qiamast/Directory-Video-Duration-Calculator.git
- Run the script in the terminal/command prompt:
python main.py
- The result will be written to a text file named
total_duration.txt
.
Total duration of all videos: 71.66 hours
Please open an issue if you encounter any problems or have any questions.