I'm trying to trim an audio file using ffmpeg_kit_flutter
but I keep getting the error:
audio/path/output.mp3: Operation not permitted.
This is the ffmpeg command that I'm using:
final cmd="-y -i \"$audioPath\" -ss $audioStartTime -to $audioEndTime -c:a libmp3lame $outPutName";
And I've also tried :
final cmd="-y -i \"$audioPath\" -ss $audioStartTime -to $audioEndTime -c copy $outPutName";
But the error is still the same.
I'm using the ffmpeg_kit_flutter_full_gpl
package.