Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With 1.6.0 release, when loading an MPD, video briefly starts at segment size #232

Closed
priyajeet opened this issue Nov 18, 2015 · 2 comments
Labels
status: archived Archived and locked; will not be updated

Comments

@priyajeet
Copy link

I have the following MPD

<MPD mediaPresentationDuration="PT3M52.0S" minBufferTime="PT10.0S" type="static" profiles="urn:mpeg:dash:profile:isoff-live:2011" xsi:schemaLocation="urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <ProgramInformation>
    </ProgramInformation>
    <Period start="PT0.0S">
        <AdaptationSet maxFrameRate="60" bitstreamSwitching="true" segmentAlignment="true" contentType="video">
            <Representation height="814" width="1920" bandwidth="8000000" codecs="avc1.64002a" mimeType="video/mp4" id="0">
                <SegmentTemplate startNumber="2" initialization="dash_1080.1.m4s" media="dash_1080.$Number$.m4s" duration="5000000" timescale="1000000">
                </SegmentTemplate>
            </Representation>
            <Representation height="362" width="854" bandwidth="2000000" codecs="avc1.42c01f" mimeType="video/mp4" id="1">
                <SegmentTemplate startNumber="2" initialization="dash_480.1.m4s" media="dash_480.$Number$.m4s" duration="5000000" timescale="1000000">
                </SegmentTemplate>
            </Representation>
        </AdaptationSet>
        <AdaptationSet bitstreamSwitching="true" segmentAlignment="true" contentType="audio">
            <Representation audioSamplingRate="44100" bandwidth="128290" codecs="mp4a.40.2" mimeType="audio/mp4" id="2">
                <AudioChannelConfiguration value="2" schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011"/>
                <SegmentTemplate startNumber="2" initialization="dash_audio.1.m4s" media="dash_audio.$Number$.m4s" duration="5000000" timescale="1000000">
                </SegmentTemplate>
            </Representation>
        </AdaptationSet>
    </Period>
</MPD>

After upgrading to 1.6.0, I am noticing that when the video 1st loads (with or without autoplay), it jumps to 5s (5s being the segment size) for a brief moment, and then goes back to 0s. The

I am still debugging myself, but maybe you guys have an idea what could be happening.

EDIT: In stream_video_source.createAndStartStreams_ the segmentIndexes start at 5s

0: shaka.media.SegmentIndex
    references: Array[46]
        0: shaka.media.SegmentReference
            endTime: 10
            startTime: 5
@tdrews
Copy link
Contributor

tdrews commented Nov 19, 2015

We changed our implementation of @startNumber with SegmentTemplate to make it consistent with SegmentTimeline and SegmentList.

If you want playback to start from the beginning of your content then @startNumber should equal 1 and dash_1080.1.m4s, dash_480.1.m4s, etc., should be the first segments.

@priyajeet
Copy link
Author

oh ok, thanks, I also updated my ticket above and that makes sense now.

@shaka-project shaka-project locked and limited conversation to collaborators Mar 22, 2018
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

No branches or pull requests

4 participants