在没有 ffmpeg 的情况下在 android 上修剪或拆分作品

问题描述

在没有 ffmpeg 的情况下在 android 上修剪或拆分作品

opus 文件可以包含在 ffmpeg 导出支持的任何格式中 (在构建应用程序时创建,ffmpeg 太重,无法包含在应用程序中)

我尝试了 genVideoUsingmuxer 、 MediaExtractor 、MediaMetadataRetriever 但它失败并出现错误

Unsupported mime 'audio/opus'
java.lang.IllegalStateException: Failed to add the track to the muxerat android.media.Mediamuxer.nativeAddTrack(Native Method)
at android.media.Mediamuxer.addTrack(Mediamuxer.java:660)

任何方式我都可以使用轻量级解决方案在 android 上修剪音频

不需要重新编码,但如果输出格式可以在 android 上播放就可以了

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)