Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Qiamast/Directory-Video-Duration-Calculator

A script that calculates the total duration of all videos in a directory
https://github.com/Qiamast/Directory-Video-Duration-Calculator

duration-calculator duration-measurement python python-script python-scripting tools video-duration

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:
```bash
pip install tqdm
```
2. Clone this repository or download the script.
```bash
git clone https://github.com/Qiamast/Directory-Video-Duration-Calculator.git
```
3. Run the script in the terminal/command prompt:
```bash
python main.py
```

4. The result will be written to a text file named `total_duration.txt`.
```bash
Total duration of all videos: 71.66 hours
```

## Support

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