问题
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.
回答1:
According to the spec, it is possible. This is a quote from the MPEG-DASH ISO/IEC 23009 spec:
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.
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
In addition, Initialization element is not mandatory (0...1).
回答2:
It is not possible. An initialization segment contains information required to initialize the decoders. For example NalLengthSize in the case of AVC codec, or Audio Specific Config for AAC.
来源:https://stackoverflow.com/questions/27687522/playing-a-mpeg-dash-stream-without-initialization-segment