Hello! There are audio tracks of different lengths in m4a format. And there is a ffmpeg library for working with media. Many tracks have the effect of "fading" at the end, and it is necessary to determine at what exact moment this happens (determined once and the value is entered into the database along with other information about the track). Those. we must somehow determine that the track begins to fade and its volume has reached 30% compared with the overall volume of the song. Can this be solved with ffmpeg and if so, how?
2 answers
I will not tell you if it can ffmpeg. But there are wonderful plugins for extracting information from audio tracks: VAMP plugins . Used them to determine the beat in the music (the beginning of bars, quarters, bpm).
Pay attention to the BBC Vamp Plugins and, in particular, Energy, Intensity and Peaks.
- While interested in such an opportunity in ffmpeg - riki-tik
|
Start by reading the filter documentation . There is a filter that can detect the audio level, but in its current form it is practically useless. Most likely you will have to write your own program, which will either be able to issue the necessary one or edit the filter, so that it would produce the necessary data.
|