发布于 2022-03-11 07:08:10
您可以使用下面的FFmpegKit命令来剪切音频。
double start = 1;
double end = 5;
var cmd = "-y -i \"$path\" -vn -ss $start -to $end -ar 16k -ac 2 -b:a 96k -acodec copy $outPath";
FFmpegKit.executeAsync(cmd, (session) async {
final returnCode = await session.getReturnCode();
print("returnCode $returnCode");
});https://stackoverflow.com/questions/70255068
复制相似问题