Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
isFFmpegAvailable()
isFFmpegAvailable()
Dart API: isFFmpegAvailable()
This verb is used to know during runtime if FFmpeg is linked with the App.
Example:
</div>
getLastFFmpegReturnCode()
getLastFFmpegReturnCode()
Dart API: getLastFFmpegReturnCode()
This simple verb is used to get the result of the last FFmpeg command
Example:
</div>
waveToPCMBuffer()
waveToPCMBuffer()
Dart API: waveToPCMBuffer()
This verb is usefull to convert a Wave buffer to a Raw PCM buffer. Note that this verb is not asynchronous and does not return a Future.
It removes the Wave
envelop from the PCM buffer.
Example:
</div>
duration()
Dart API:
Note: the parameters numChannels
and sampleRate
are mandatory, and must match the actual PCM data. a discussion about Raw PCM
and WAVE
file format.
Dart API:
Dart API:
Dart API:
The informations got with FFmpegGetMediaInformation() are .
Dart API:
convertFile()
convertFile()
Dart API: convertFile()
This verb is useful to convert a sound file to a new format.
infile
is the file path of the file you want to convert
codecin
is the actual file format
outfile
is the path of the file you want to create
codecout
is the new file format
Be careful : outfile
and codecout
must be compatible. The output file extension must be a correct file extension for the new format.
Note : this verb uses FFmpeg and is not available int the LITE flavor of Flutter Sound.
Example:
</div>
executeFFmpegWithArguments()
executeFFmpegWithArguments()
Dart API: executeFFmpegWithArguments()
This verb is a wrapper for the great FFmpeg application. The command "man ffmpeg" (if you have installed ffmpeg on your computer) will give you many informations. If you do not have ffmpeg
on your computer you will find easyly on internet many documentation on this great program.
Example:
</div>
pcmToWaveBuffer()
pcmToWaveBuffer()
Dart API: pcmToWaveBuffer()
This verb is usefull to convert a Raw PCM buffer to a Wave buffer.
It adds a Wave
envelop in front of the PCM buffer, so that the file can be played back with startPlayerFromBuffer()
.
Note: the parameters numChannels
and sampleRate
are mandatory, and must match the actual PCM data. See here a discussion about Raw PCM
and WAVE
file format.
Example:
</div>