new script
parent
8855b05b03
commit
4a8db82e26
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
#dur - Get duration of audio dir - Kok_Nikol
|
||||
#https://www.reddit.com/r/linuxquestions/comments/3b93uv/comment/csk1poq/?utm_source=share&utm_medium=web2x&context=3
|
||||
tot=0; while read -r i; do tmp=0; tmp=`ffprobe "$i" -show_format 2>/dev/null | grep "^duration" | cut -d '=' -f 2 | cut -d '.' -f 1`; if [ -n "$tmp" ]; then let tot+=$tmp; fi; done < <(find . -type f -iname "*[.mp3,.wav,.flac]"); echo "Total duration: $(($tot/60)) minutes"
|
||||
Loading…
Reference in New Issue