我尝试在 MP4Box 的帮助下为视频创建破折号格式当我运行命令时:-
它使用 Ubuntu 16.4MP4Box -dash 2000 -rap -frag-rap -profile onDemand 1OaG8xKJPZg-320.mp4 1OaG8xKJPZg-720.mp4
显示一些警告,
然后在我收到 1OaG8xKJPZg-320_dash.mpd 1OaG8xKJPZg-320_dashinit.mp4 1OaG8xKJPZg-720_dashinit.mp4 这些文件我上传到谷歌带有公开共享链接的云,供参考我使用我的播放器活动上传到谷歌驱动器
https://drive.google.com/drive/folders/1t_YF_TJrMnQOQ8BNBiDjC8erPhRjVy_1?usp=sharing
当我运行我的程序时,我收到错误exoplayer2.ParserException
Source error.
com.google.android.exoplayer2.ParserException: inputStream does not contain a valid media presentation description
at com.google.android.exoplayer2.source.dash.manifest.DashManifestParser.parse(DashManifestParser.java:96)
at com.google.android.exoplayer2.source.dash.manifest.DashManifestParser.parse(DashManifestParser.java:54)
at com.google.android.exoplayer2.upstream.ParsingLoadable.load(ParsingLoadable.java:115)
at com.google.android.exoplayer2.upstream.Loader$LoadTask.run(Loader.java:295)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
我尝试了多次,但每次我收到相同的错误