Determinate song's tempo using ffmpeg

Viewed 1292

I found ffmpeg library pretty good for converting from mp3 to wav. I'm using this library to convert:

https://github.com/WritingMinds/ffmpeg-android-java

Then I want to do this steps:

  • determinate songs tempo
  • convert it into wav
  • slice the song into segments according to bpm: for example per bar or per 1/2 note.

I haven't found any command that I can determinate bpm. Maybe you guys know if ffmpeg can actually do it, or advice another library that can handle this problem

1 Answers

I've been using Aubio to do this. From the website:

Features

aubio currently provides the following features:

  • digital filters
  • phase vocoder
  • onset detection (several methods)
  • pitch tracking (several methods)
  • beat and tempo tracking
  • mel frequency cepstrum coefficients (MFCC)
  • transient / steady-state separation

GitHub project.

Related