ffmpeg library

Optional helper that decodes a file to analysis-ready samples by running the ffmpeg program. Not available on the web. Needs ffmpeg installed.

Classes

FfmpegDecoder
An AudioDecoder that runs the ffmpeg program. Use it with TrackAnalyzer(FfmpegDecoder()).

Functions

decodeWithFfmpeg(String path, {String ffmpeg = 'ffmpeg'}) → Future<Float32List?>
Decodes path to mono floats at analysisSampleRate using ffmpeg (the executable name or full path). Returns null when ffmpeg is missing, fails, or produces no audio.