我尝试在MP4Box的帮助下为视频创建短划线格式
当我运行命令: -
MP4Box -dash 2000 -rap -frag-rap -profile onDemand 1OaG8xKJPZg-320.mp4 1OaG8xKJPZg-720.mp4
它显示了一些警告using Ubuntu 16.4
之后我收到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)
我尝试多次,但每次收到同样的错误