在没有初始化段的情况下播放 mpeg 破折号流 [英] Playing a mpeg dash stream without initialization segment
问题描述
我正在尝试生成可在 dash 播放器中播放的 dash 流.我有一个 mp4 视频,我将其分成多个视频,每个视频大约 10 秒.现在我想在一个破折号播放器中播放这个视频,其中每个片段都是自初始化的.如果不创建初始化段,我怎么可能做到这一点.
I am trying to generate a dash stream playable in dash player. I have a one mp4 video which I have chunked into multiple videos of approximately 10 secs each. Now I would like to play this videos in a dash player where each segment is self initializing. How could I possibly achieve this without creating a initialization segment.
推荐答案
根据规范,这是可能的.这是 MPEG-DASH ISO/IEC 23009 规范中的引用:
According to the spec, it is possible. This is a quote from the MPEG-DASH ISO/IEC 23009 spec:
一个表示由一个或多个段组成.每个表示应包含一个初始化段或表示中的每个媒体段应自初始化,即媒体段本身符合指定的媒体类型在此表示的 @mimeType 属性中.
A Representation consists of one or more Segments. Each Representation either shall contain an Initialization Segment or each Media Segment in the Representation shall be self-initializing, i.e. the Media Segment itself conforms to the media type as specified in the @mimeType attribute for this Representation.
当表示不是从属表示时,即@dependencyId 属性不存在,然后连接初始化段(如果存在)和所有连续的媒体段在一个 Representation 中,应将符合要求的 Segment 序列表示为4.5.3 中定义的符合媒体类型中指定的此表示的@mimeType 属性
When a Representation is not a dependent Representation, i.e. the @dependencyId attribute is absent, then concatenation of the Initialization Segment, if present, and all consecutive Media Segments in one Representation shall represent a conforming Segment sequence as defined in 4.5.3 conforming to the media type as specified in the @mimeType attribute for this Representation
此外,Initialization 元素不是强制性的 (0...1).
In addition, Initialization element is not mandatory (0...1).
这篇关于在没有初始化段的情况下播放 mpeg 破折号流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!