Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
A script that calculates the total duration of all videos in a directory
- Host: GitHub
- URL: https://github.com/Qiamast/Directory-Video-Duration-Calculator
- Owner: Qiamast
- Created: 2023-02-09T16:17:57.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T17:03:14.000Z (almost 2 years ago)
- Last Synced: 2024-05-30T02:49:01.684Z (6 months ago)
- Topics: duration-calculator, duration-measurement, python, python-script, python-scripting, tools, video-duration
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.