list all audio files with duration bash ffprobe
LENGTH=0; for file in *; do LENGTH="$LENGTH+$(ffprobe -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$file" 2>/dev/null)"; done; echo "$LENGTH" | bc# For an output like this
# 00:07:22 first.mp3
# 00:02:33 second.mp3
# 00:04:04 third.mp3
# Use this
for file in *.mp3
do
echo -n $(ffprobe $file 2>&1 | grep 'Duration' | cut -d',' -f1 | cut -d' ' -f4 | cut -d'.' -f1)
echo " $file"
done
Also in C++:
- shell script linux
- download latest stable solc ubuntu
- ImportError: No module named tensorflow
- CPANEL AUTO DEPLOYMENT WITH GITLAB
- git add all except one file
- install c++ ubuntu
- linux
- how to start docker in ubuntu
- ubuntu install and configure postgres server
- install pcl ubuntu
- status code 409 sudo has snap-install
- git branch delete local and remote
- statsmodels.formula.api.logit
- how to install paint.net on linux
- ubuntu deskyop repository
- pathspec 'corp-branch' did not match any file(s) known to git
- git ignore content of a folder
- bash loop over files with extension
- how to change gopath
- create a file in linux
- raspberry pi install firefox
- install react-content loader
- ssh custom port fla
- git init then how to get url