flutter - Flutter ffmpeg:视频合并不起作用
问题描述
我一直在尝试在颤振中使用 ffmpeg 合并两个视频文件,但是一个视频文件合并了两次并且视频的声音不起作用
这是我的代码
final appDir = await getExternalStorageDirectory();
String rawDocumentPath = appDir!.path;
final outputPath = '$rawDocumentPath/videomerge.mp4';
final FlutterFFmpeg _flutterFFmpeg = new FlutterFFmpeg();
String commandToExecute = '-y -i ${VideoFiles[0].path} -i ${VideoFiles[1].path}
-filter_complex \'[0:v][0:v]concat=n=2:v=1:a=0[out]\' -map \'[out]\' $outputPath';
_flutterFFmpeg.execute(commandToExecute).then((rc) => print("FFmpeg process exited with
rc $rc"));
任何帮助将不胜感激 :)
解决方案
推荐阅读
- java - 事务失败时向数据库提交异常堆栈跟踪
- esb - cloudhub 上的连接超时错误:Mule 版本:4.2.2
- angular - 将功能从一个兄弟姐妹传递给另一个兄弟姐妹(2020 年方式)
- sql - 如何计算 SQL 中的最高频率值
- android - 无法在 Android Studio 上运行程序 flutter.bat
- scala - 有没有更有效的方法来使用递归函数检查一个数字是否为素数?
- python - 有没有办法使用 Python(openpyxl)复制合并的单元格?
- javascript - 如何将不同文件中的多个类包装成打字稿中的单个函数
- python - 在 Mac 上使用“pipenv install”失败,出现“没有这样的文件或目录”错误
- c++ - 何时在类模板中实例化函数模板?