if [ $# -eq 0 ]; then
	echo -e "Usage: get_duration [file path]"
	exit 1
fi

ff=$(ffmpeg -i "$1" -t 2>&1)
d="${ff#*Duration: }"
echo "${d%%,*}"
