Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/3l-d1abl0/durationdetective
A python tool to scan you folders and calculate the duration of media files in it!
https://github.com/3l-d1abl0/durationdetective
audio duration media python3 tree-structure video
Last synced: about 2 months ago
JSON representation
A python tool to scan you folders and calculate the duration of media files in it!
- Host: GitHub
- URL: https://github.com/3l-d1abl0/durationdetective
- Owner: 3l-d1abl0
- License: mit
- Created: 2020-12-21T14:40:31.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-10T15:16:37.000Z (12 months ago)
- Last Synced: 2024-08-13T23:17:11.903Z (5 months ago)
- Topics: audio, duration, media, python3, tree-structure, video
- Language: Python
- Homepage: https://pypi.org/project/duration-detective/
- Size: 27.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
██████╗ ██╗ ██╗██████╗ █████╗ ████████╗██╗ ██████╗ ███╗ ██╗
██╔══██╗██║ ██║██╔══██╗██╔══██╗╚══██╔══╝██║██╔═══██╗████╗ ██║
██║ ██║██║ ██║██████╔╝███████║ ██║ ██║██║ ██║██╔██╗ ██║
██║ ██║██║ ██║██╔══██╗██╔══██║ ██║ ██║██║ ██║██║╚██╗██║
██████╔╝╚██████╔╝██║ ██║██║ ██║ ██║ ██║╚██████╔╝██║ ╚████║
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝
██████╗ ███████╗████████╗███████╗ ██████╗████████╗██╗██╗ ██╗███████╗
██╔══██╗██╔════╝╚══██╔══╝██╔════╝██╔════╝╚══██╔══╝██║██║ ██║██╔════╝
██║ ██║█████╗ ██║ █████╗ ██║ ██║ ██║██║ ██║█████╗
██║ ██║██╔══╝ ██║ ██╔══╝ ██║ ██║ ██║╚██╗ ██╔╝██╔══╝
██████╔╝███████╗ ██║ ███████╗╚██████╗ ██║ ██║ ╚████╔╝ ███████╗
╚═════╝ ╚══════╝ ╚═╝ ╚══════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═══╝ ╚══════╝
```
A tree-like tool to check the media duration in your folders/subfolders.
## 🚀 Installation
### Create a virtual environment (if needed)
```
$ python3 -m venv
source /bin/activate
```#### Install via pip
```
pip install duration-detective
```#### Run it
```
$ DurationDetective --path "/path/to/your/folder"Scanning Folder :
/path/to/your/folder ...
├──22mins 02secs ⏲️ Batman Hush (2019) (1080p BluRay x265 SAMPA).mkv
├──16mins 39secs ⏲️ Batman.The.Killing.Joke.2016.1080p.6CH.ShAaNiG-[Bi-3-Seda.Ir].mkv
├──27mins 07secs ⏲️ Batman.VsTeenage.Mutant.Ninja.Turtles.2019.720p.WEBRip.x264-[YTS.AM].mp4
├──14mins 16secs ⏲️ Batman.and.Harley.Quinn.2017.WEB-DL.720p.MkvCage.mkv
├──12mins 07secs ⏲️ Batman.vs.Two.Face.2017.DVDRip.MkvCage.mkv
├──45mins 55secs ⏲️ Dark.Web.Cicada.3301.2021.720p.BRRip.Tamil.Dub.Dual-Audio.x264-1XBET.mkv
├──Good Will Hunting (1997) [1080p]/
│ ├──06mins 33secs ⏲️ Good.Will.Hunting.1997.1080p.BrRip.x264.YIFY.mp4
│ └──06mins 33secs ⏲️ : Good Will Hunting (1997) [1080p]/
├──Ship Of Theseus (2012)/
│ ├──24mins 42secs ⏲️ Ship.Of.Theseus.2012.720p.BluRay.x264.[YTS.AG].mp4
│ └──24mins 42secs ⏲️ : Ship Of Theseus (2012)/
├──The.Batman.2022.1080p.WEBRip.x265-RARBG/
│ ├──Subs/
│ │ └──00mins 00secs ⏲️ : Subs/
│ ├──56mins 12secs ⏲️ The.Batman.2022.1080p.WEBRip.x265-RARBG.mp4
│ └──56mins 12secs ⏲️ : The.Batman.2022.1080p.WEBRip.x265-RARBG/✅ Total Duration: 3hr 39min 33secs ⏲️
```
## Use case
I have been using it personally for planning hours before diving into any Course videos or before Planning to binge watch any Television Series. Gives me a rough estimate of How much time consuming it can be.### Contribution
```
$ git clone https://github.com/3l-d1abl0/DurationDetective.git
```### Raise Issues
``` https://github.com/3l-d1abl0/DurationDetective/issues ```