/DurationDetective-rs

A tree like tool that list the duration of media files inside a folder.

Primary LanguageRustMIT LicenseMIT

Duration Detective


Duration detective is a tree like tool that list the duration of media files inside a folder.

Written in RUSTπŸ¦€

This requires ffmpeg installed on the system

Installation:

//Clone the repo
git clone https://github.com/3l-d1abl0/DurationDetective-rs.git
cd duration-detective-rs/

//To see list of commands available
make

//This will build the executable
make duration-detective-build   

If all goes well, the binary will be placed at 'target/release/`

Example:

//This runs the executable on sample files/
make duration-detective-sample-run

Ideally this is how you would run it:

sample-run.mp4

./duration-detective-rs --path="path/to/your/folder"

./target/release/duration-detective-rs --path="files/"
Path recieved: files/
Directory to Scan: files/ 
β”œβ”€β”€audios/
β”‚   β”œβ”€β”€mp3/
β”‚   β”‚   └──53sec  file_example_MP3_2MG.mp3
β”‚   β”‚   └──53sec  mp3
β”‚   β”œβ”€β”€ogg/
β”‚   β”‚   └──01min 15sec  file_example_OOG_2MG.ogg
β”‚   β”‚   └──01min 15sec  ogg
β”‚   └──wav/
β”‚   β”‚   └──11sec  file_example_WAV_2MG.wav
β”‚   β”‚   └──11sec  wav
β”‚   └──02min 20sec  audios
└──videos/
β”‚   β”œβ”€β”€avi/
β”‚   β”‚   └──30sec  file_example_AVI_1920_2_3MG.avi
β”‚   β”‚   └──30sec  avi
β”‚   β”œβ”€β”€m4v/
β”‚   β”‚   └──13sec  sample_960x540.m4v
β”‚   β”‚   └──13sec  m4v
β”‚   β”œβ”€β”€mp4/
β”‚   β”‚   └──30sec  file_example_MP4_640_3MG.mp4
β”‚   β”‚   └──30sec  mp4
β”‚   β”œβ”€β”€mpeg/
β”‚   β”‚   └──28sec  sample_1280x720.mpeg
β”‚   β”‚   └──28sec  mpeg
β”‚   └──webm/
β”‚   β”‚   └──30sec  file_example_WEBM_640_1_4MB.webm
β”‚   β”‚   └──30sec  webm
β”‚   └──02min 13sec  videos
Total Folder Duration: 04min 34sec