Qiamast / Directory-Video-Duration-Calculator

A script that calculates the total duration of all videos in a directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video Duration Calculator

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.

Requirements

  • Python 3.10
  • ffprobe.exe
  • tqdm (for progress bar)

Usage

  1. Install the required packages:
pip install tqdm
  1. Clone this repository or download the script.
git clone https://github.com/Qiamast/Directory-Video-Duration-Calculator.git
  1. Run the script in the terminal/command prompt:
python main.py
  1. The result will be written to a text file named total_duration.txt.
Total duration of all videos: 71.66 hours

Support

Please open an issue if you encounter any problems or have any questions.

About

A script that calculates the total duration of all videos in a directory


Languages

Language:Python 100.0%