java - java.lang.RuntimeException:MediaMuxer 创建失败
问题描述
android 9 版本出现以下错误,但所有其他版本都可以正常工作。
java.lang.RuntimeException: MediaMuxer creation failed
这是我的java代码。
String outputPath = mOutputPath;
Log.d(TAG, "output file is " + outputPath);
try {
mMuxer = new MediaMuxer(outputPath, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4);
} catch (IOException ioe) {
throw new RuntimeException("MediaMuxer creation failed", ioe);
}
解决方案
推荐阅读
- css - 如何在特定大小的 div 中使用 highcharts 嵌入实心 Gauge
- asp.net - 是否可以仅使用 Route 属性来提供有效的 ASP.NET 控制器路由?
- azure - 如何使用加速网络创建 Azure VMSS?
- xamarin.forms - 如何用多行填充标签?
- powershell - 如何使用 PowerShell 删除 REG_DWORD 注册表值,其中注册表值如 '*String*'?
- jenkins - 无法在 groovy 和 jenkins 中解析 json 文件
- android - 来自背景后出现的其他片段上的片段
- c++ - 将数组的所有元素输出到c ++中的文件
- dataset - 条件 GAN - 相同地洗牌/拆分两个数据集
- python - 不重复字符的最长子串