get audio information with ffmpeg code example Example: get info about an audio file ffmpeg ffprobe foo.mp3 2>&1 | grep -A1 Duration: