[FFmpeg-user] Reading Tempo/BPM information from audio files

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Sep 17 14:34:59 EEST 2018


2018-09-17 13:24 GMT+02:00, Adam Harries <harries.adam at gmail.com>:

> I'm hoping to use ffmpeg as a generic, cross-platform, tool to read
> metadata from audio files - specifically title and BPM information.
>
> From what I cant tell, ffmpeg easily supports this for mp3 files.

The mp3 encoder you used wrote the BPM as a comment (that
may or may not be correct) into the file you read with FFmpeg,
FFmpeg shows the comment.

> For example, the following command:
>
>     ffmpeg -i ~/Music/Archive.org/Jumpin\'\ at\ the\ Woodside\ -\ Count\
> Basie\ And\ His\ Orchestra.mp3 -f ffmetadata jumpin_metadata.txt
>
> Produces useful output of the (shortened)  form:
>     Input #0, mp3, from '/home/adam/Music/Archive.org/Jumpin' at the
> Woodside - Count Basie And His Orchestra.mp3':
>   Metadata:
>     album           : Jumpin' at the Woodside
>     title           : Jumpin' at the Woodside
>     TLEN            : 196.48
>     artist          : Count Basie And His Orchestra;Count Basie
>     track           : 01
>     encoder         : LAME 64bits version 3.99.5 (http://lame.sf.net)
>     TBPM            : 2
>
> (Where TBPM is the bpm tag).
>
> Unfortunately, when I try to use a similar command with any other audio
> format (such as ALAC, FLAC, or M4A), ffmpeg doesn't appear to return any
> BPM information.

> This is true even for files which I can verify (with other
> tools) that they have bpm/tempo metadata attached.

Command line and complete, uncut console output missing /
please provide such a file.

Carl Eugen


More information about the ffmpeg-user mailing list