澳门银河网上官方赌场_老品牌值得信赖

ITKeyword,专注技术干货聚合推荐

注册 | 登录

解决ffmpeg - Create MPEG-DASH Initialization segment

itPublisher 分享于

2020腾讯云双十一活动,全年最低!!!(领取3500元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1073

2020阿里云最低价产品入口,含代金券(新老用户有优惠),
地址https://www.aliyun.com/minisite/goods

推荐:流媒体服务器全配置:Darwin Streaming Server,ffmpeg安装和Mpeg4IP ,MP4Box Mp4 hint媒体流化

系统环境为CentOS 6.2 64位? 一,准备工作 DSS主页: http://dss.macosforge.org/ 下载安装包:wget? http://dss.macosforge.org/downloads/DarwinStreamingSrvr

I am looking to convert between HLS and MPEG Dash. I do not access to the original fully concatenated video file, only the individual HLS segments.

In doing this transformation to MPEG Dash I need to supply an initialziation segment for the Dash manifest .mpd file.

My questions are:

  1. What is the structure of a Dash video initialization segment?
  2. How can I generate/create one without the need for the original full file?

Perhaps a solution would involve getting MP4Box to convert the '.ts' HLS segments to Dash '.m4s' segments which are self initializing, but I am unsure how to go about this this?

Any ideas are much appreciated.

Many thanks.

UPDATE: Snippet to stream using original hls segments. Video plays all the way through but is just black.

  <Representation width="426" height="238" frameRate="25" id="238p 400kbps" bandwidth="400000">
    <SegmentList timescale="25000" duration="112500">
           <SegmentURL media="video_0_400000/hls/segment_0.ts"/>
           <SegmentURL media="video_0_400000/hls/segment_1.ts"/>
          <SegmentURL media="video_0_400000/hls/segment_2.ts"/>
    </SegmentList>
   </Representation>
</AdaptationSet>
ffmpeg hls mpeg-dash adaptive-bitrate mp4box
edited Jan 5 '16 at 9:30 asked Jan 4 '16 at 16:01 Mahout 289 1 10

 | 

1 Answers
1

解决方法

What is the structure of a Dash video initialization segment?

The initialization segment contains information required to initialize the video decoder. The initialization segment is optional (refer to ISO/IEC 23009-1).

For ISO BMFF (commonly known as mp4) this includes the moov box (specified in ISO/IEC 14496-12). For MPEG-TS usually there is no initialization segment. When present it contains several packets that carry the initialization data in a PES.

How can I generate/create one without the need for the original full file?

Converting HLS to MPEG-DASH is trivial if your target player supports the required features. First you need a player that supports MPEG-TS. Then you don't actually need an initialization segment because the initialization data is contained inside each HLS segment. To convert and HLS playlist to a MPEG-DASH mpd you have to create a segment list or a segment template. Here is an example:

HLS:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:10
#EXTINF:10.0,
stream0.ts
#EXTINF:10.0,
stream1.ts
#EXTINF:10.0,
stream2.ts

MPD:

...
<SegmentList duration="10">
   <SegmentURL media="stream0.ts"/>
   <SegmentURL media="stream1.ts"/>
   <SegmentURL media="stream2.ts"/>
</SegmentList>
...

If your target player does not support MPEG-TS or SegmentList then you have to convert the HLS stream to MPEG-DASH by the use of some external tool like MP4Box.


answered Jan 5 '16 at 8:06 Svetlin Mladenov 2,458 12 23      Many thanks, this is really insightful. I don't believe I have a player which will support these HLS segments. Could you point me in the right direction for the mp4box command that will do this conversion? –  Mahout Jan 5 '16 at 8:57      Sorry, I haven't had much experience with mp4box. I've tried it a couple of times but I don't remember the exact commands. I suggest you examine the documentation. –  Svetlin Mladenov Jan 5 '16 at 9:03      Using the SegmentList method above, I can play the video but the video is black all the way through. I have added the snippet at the end of the original post. –  Mahout Jan 5 '16 at 9:28

 | 


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。

澳门银河网上官方赌场 <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <蜘蛛词>| <文本链> <文本链> <文本链> <文本链> <文本链> <文本链>