首页 > 解决方案 > 下载破折号后Android将exo转换为mp4

问题描述

我已经通过 exo 播放器提供的 android DashDownloader 类下载了基于 HTTP 的动态自适应流式传输(DASH)。

SimpleCache cache = new SimpleCache(file.getAbsoluteFile(), new NoOpCacheEvictor());
DefaultHttpDataSourceFactory factory = new DefaultHttpDataSourceFactory("ExoPlayer", null);
DownloaderConstructorHelper constructorHelper = new DownloaderConstructorHelper(cache, factory);

// Create a downloader for the first representation of the first adaptation set of the first
// period.
DashDownloader dashDownloader = new DashDownloader(Uri.parse(url), Collections.singletonList(new RepresentationKey(0, 0, 0)), constructorHelper);
dashDownloader.download();

上面的代码将许多块 .exo 文件保存到提供的目录中,如何将这些文件转换为单个 mp4 文件?

标签: javaandroidffmpegexoplayermpeg-dash

解决方案


推荐阅读