ffmpeg的功能很强大,关于音视频的处理差不多都包含,比如视频加水印,字幕,
音视频格式转换等等。
下面的方法只是几个案例,但是万变不离其中,注意ffmpeg的命令一定要写对;目前githup上面的demo只有三个方法,详情点击githup查看。
并且附上
ffmpeg文档的链接
,
githup地址
1:音频转MP3
2:视频消除声音
3:多段音频合并(拼接)
/
**
*
多段音频合并(拼接)
*/
public static String[] mergeAudio(List<String> voices, String outputUrl) {
ArrayList<String> _commands = new ArrayList<>();
_commands.add(“-y”);
_commands.add(“-i”);
String pathCmd = “”;
for (int i = 0; i < voices.size(); i++