Skip to content

Instantly share code, notes, and snippets.

@alza-bitz
alza-bitz / analyze_collection.sh
Last active March 11, 2018 00:35
Analysis of Music Files
#!/bin/sh
# This script will create a Collection.csv file with the following format:
# "/path/to/music/file",type,rate,duration,bitrate
# Note: ffmpeg needs to be installed (for ffprobe command)
# 1. number of files of each type (mp3 160, 192, vbr, 320; aac 192, 256)
# 2. average duration of tracks (of files of each type)
# 3. from 1. and 2. and using http://www.theaudioarchive.com/TAA_Resources_File_Size.htm