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

When using $time$ and @duration in MPD file, the first $time$ value requested by Dash.js is negative. #4535

Closed
naeoc4509 opened this issue Aug 1, 2024 · 6 comments
Labels

Comments

@naeoc4509
Copy link

Environment
  • Link to playable MPD file:
  • Dash.js version: latest - development (5.0.0)
  • Browser name/version: Chrome / 127.0.6533.88
  • OS name/version: Windows 10 Pro / 22H2

Hi, I'm Jaden

According to the contents of '@duration' in '5.3.9.5.2 Initialization Segment information' of ISO IEC 23009-1 : 2022 document,
I configured as below.
image

And when I created the video files like below,
image

But, 'Dash.js' player has a problem that it requests a negative value of '-120120' instead of '0' for $time$ as the first file.
image

It seems that it needs to be modified to match the standard document.

Thank you.

@naeoc4509 naeoc4509 added the Bug label Aug 1, 2024
@dsilhavy
Copy link
Collaborator

dsilhavy commented Aug 1, 2024

Please upload your content on a server so we can check. Please also check if it is playing in Shaka Player as a second reference: https://shaka-player-demo.appspot.com/demo/

@naeoc4509
Copy link
Author

naeoc4509 commented Aug 1, 2024

As shown in the picture below, the Shaka Player below plays without any problems.
image

with log,
image

We cannot provide a server due to company security.
If you tell me the link to a storage that can be uploaded, I will upload all the mpd-related files.

@dsilhavy
Copy link
Collaborator

dsilhavy commented Aug 1, 2024

Do you see the same problem in dash.js 4.7.4: https://reference.dashif.org/dash.js/latest/samples/dash-if-reference-player/index.html

Please paste the content of your MPD here then, it should be enough to reproduce the problem

@naeoc4509
Copy link
Author

naeoc4509 commented Aug 1, 2024

Yes. Same problem occurs with 4.7.4 and previous versions.

I'm attaching the mpd file.

Remove '.txt' from the file name and use it.
dash.mpd.txt

And capture is below
image

<?xml version="1.0" encoding="UTF-8"?> <MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" profiles="urn:mpeg:dash:profile:full:2011" type="static" mediaPresentationDuration="PT12M0.720S" minBufferTime="PT4S"> <Period start="PT0S"> <AdaptationSet id="0" contentType="video" segmentAlignment="true" mimeType="video/mp4" startWithSAP="1"> <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/> <SegmentTemplate timescale="60000" duration="120120" startNumber="1" media="$RepresentationID$-$Time$.m4v" initialization="$RepresentationID$.init"> </SegmentTemplate> <Representation id="stream-video-0-5000Kbps" bandwidth="5000000" width="1920" height="1080" frameRate="30000/1001" codecs="avc1.4d4028"> </Representation> </AdaptationSet> <AdaptationSet id="1" lang="und" contentType="audio" segmentAlignment="true" mimeType="audio/mp4" startWithSAP="1"> <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/> <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/> <SegmentTemplate timescale="48000" duration="96096" startNumber="1" media="$RepresentationID$-$Time$.m4a" initialization="$RepresentationID$.init"> </SegmentTemplate> <Representation id="stream-audio-1-und-256Kbps" bandwidth="256000" audioSamplingRate="48000" codecs="mp4a.40.2"> </Representation> </AdaptationSet> <AdaptationSet id="2" contentType="image" mimeType="image/jpeg"> <SegmentTemplate timescale="500" duration="30030" startNumber="1" media="$RepresentationID$-$Time$.jpg"> </SegmentTemplate> <Representation id="stream-image-200-49Kbps" bandwidth="49950" width="960" height="480"> <EssentialProperty schemeIdUri="http://dashif.org/guidelines/thumbnail_tile" value="3x2"/> </Representation> </AdaptationSet> </Period> </MPD>

@dsilhavy
Copy link
Collaborator

dsilhavy commented Aug 2, 2024

@naeoc4509 Can you please check if #4537 fixes your issue. The change should be available in nightly soon: https://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html

@naeoc4509
Copy link
Author

It works well!

Capture 2024-08-03 012223

Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants