Horje
list all audio files with duration bash ffprobe Code Example
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
list all audio files with duration bash ffprobe
# 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 




Shell

Related
nsis set default install directory with username Code Example nsis set default install directory with username Code Example
pip install caffe Code Example pip install caffe Code Example
how to install tesseract in other language in linux Code Example how to install tesseract in other language in linux Code Example
vagrant 16 Code Example vagrant 16 Code Example
create new partion linux Code Example create new partion linux Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10