带有单个mp4文件的MPEG-DASH视频流 [英] MPEG-DASH video stream with just single mp4 file

查看:245
本文介绍了带有单个mp4文件的MPEG-DASH视频流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个星期,以找到一种简单且独立于平台的方法来将mp4文件流式传输到任何浏览器.如果浏览器不兼容,将使用渐进流(直接下载)方法.我的情况是这样的:

I'm researching for a week to find a simple and platform independent method to stream a mp4 file to any browser. In case of browser incompatibility progressive stream(direct download) method will be used. My scenario is like this:

  • 单个mp4文件(未分段和复用(音频+视频))
  • 支持HTTP字节范围服务
  • 在浏览器不兼容的情况下支持渐进式流(直接文件下载)

研究了Apple HLS,Adobe Flash Stream,Microsoft Smooth,RTSP和MPEG-DASH之后,看来 MPEG-DASH 是正确的解决方案.但是问题是MPEG-DASH迫使我将mp4文件拆分为单独的分段文件,这导致重复占用了存储mp4文件的空间,因为在浏览器不兼容的情况下我必须支持渐进式流.然后,不可避免的是将单个mp4文件与分段的mp4文件一起存储.

After studying Apple HLS, Adobe Flash Stream, Microsoft Smooth, RTSP and MPEG-DASH it seems that MPEG-DASH is the proper solution. But the problem is MPEG-DASH forcing me to split mp4 file to separate segmented files which leads to duplicate consuming space to store the mp4 file because I have to support progressive stream in case of browser incompatibility. Then storing single mp4 file with segmented mp4 files is unavoidable.

问题是:是否可以将单个 mp4文件作为 http流&在任何浏览器中都是渐进式流?

The question is: is there any way to serve a single mp4 file as http stream & progressive stream in any browser ?

MPEG-DASH协议说它支持多路复用文件,但问题是 dash.js 不支持.是否有其他任何JavaScript播放器支持带有字节范围请求的多路复用和单个mp4文件?

MPEG-DASH protocols says it supports multiplexed files but the problem is dash.js does not support it. Is there any other javascript player which supports multiplexed and single mp4 files with byte-range requests ?

欢迎任何其他符合我的方案条件的解决方案. 谢谢.

Any other solution which commits my scenario conditions is welcomed. Thanks.

参考: BitCodin.com 2

推荐答案

我认为所有主流浏览器都支持mp4. http://caniuse.com/#feat=mpeg4 .您可以只使用一个好的旧的HTTP服务器来流式传输它.仅当您需要诸如自适应比特率流,多语言,drm等这样的精美内容时,才需要MPEG-DASH.

I think all major browser support mp4. http://caniuse.com/#feat=mpeg4. You can stream it using just a good old http server. MPEG-DASH is required only if you require fancy stuff like adaptive bitrate streaming, multi language, drm and so.

如果您坚持使用MPEG-DASH,则可以使用 mp4box 在服务器端(您只需执行一次).结果不是多个mp4文件,而是一个以更适合流式传输方式组织的单个mp4文件.

If you insist on using MPEG-DASH you can simply segment your mp4 files using a mp4box on the server side (you have to do it only once). The result is not mulitple mp4 files but rather a single mp4 files that is organized in a more suitable for streaming way.

这篇关于带有单个mp4文件的MPEG-DASH视频流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆