forked from shaka-project/shaka-packager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: duplicate representation id for TTML when forced ordering is on (s…
- Loading branch information
Showing
6 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+42.7 KB
packager/app/test/testdata/forced-commandline-ordering-ttml/bear-640x360-audio.mp4
Binary file not shown.
Binary file added
BIN
+295 KB
packager/app/test/testdata/forced-commandline-ordering-ttml/bear-640x360-video.mp4
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
packager/app/test/testdata/forced-commandline-ordering-ttml/bear-english-text.ttml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<tt xmlns="http://www.w3.org/ns/ttml" xml:lang="en"> | ||
<body> | ||
<div> | ||
<p begin="0.1s" end="0.8s">Yup, that's a bear, eh.</p> | ||
<p begin="1.0s" end="4.7s">He 's... um... doing bear-like stuff.</p> | ||
</div> | ||
</body> | ||
</tt> |
28 changes: 28 additions & 0 deletions
28
packager/app/test/testdata/forced-commandline-ordering-ttml/output.mpd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!--Generated with https://github.com/shaka-project/shaka-packager version <tag>-<hash>-<test>--> | ||
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" minBufferTime="PT2S" type="static" mediaPresentationDuration="PT2.736067S"> | ||
<Period id="0"> | ||
<AdaptationSet id="0" contentType="video" width="640" height="360" frameRate="30000/1001" subsegmentAlignment="true" par="16:9"> | ||
<Representation id="0" bandwidth="973483" codecs="avc1.64001e" mimeType="video/mp4" sar="1:1"> | ||
<BaseURL>bear-640x360-video.mp4</BaseURL> | ||
<SegmentBase indexRange="870-937" timescale="30000"> | ||
<Initialization range="0-869"/> | ||
</SegmentBase> | ||
</Representation> | ||
</AdaptationSet> | ||
<AdaptationSet id="1" contentType="audio" subsegmentStartsWithSAP="1" subsegmentAlignment="true"> | ||
<Representation id="1" bandwidth="133334" codecs="mp4a.40.2" mimeType="audio/mp4" audioSamplingRate="44100"> | ||
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/> | ||
<BaseURL>bear-640x360-audio.mp4</BaseURL> | ||
<SegmentBase indexRange="804-871" timescale="44100"> | ||
<Initialization range="0-803"/> | ||
</SegmentBase> | ||
</Representation> | ||
</AdaptationSet> | ||
<AdaptationSet id="2" contentType="text" subsegmentAlignment="true"> | ||
<Representation id="2" bandwidth="256" mimeType="application/ttml+xml"> | ||
<BaseURL>bear-english-text.ttml</BaseURL> | ||
</Representation> | ||
</AdaptationSet> | ||
</Period> | ||
</MPD> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters