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
ffmpegprogram. Use it withTrackAnalyzer(FfmpegDecoder()).
Functions
-
decodeWithFfmpeg(
String path, {String ffmpeg = 'ffmpeg'}) → Future< Float32List?> -
Decodes
pathto mono floats at analysisSampleRate usingffmpeg(the executable name or full path). Returns null when ffmpeg is missing, fails, or produces no audio.