-
Notifications
You must be signed in to change notification settings - Fork 553
fix: Allow video fourcc to be preserved in HLS #1523
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
Open
gmcgarry
wants to merge
12
commits into
shaka-project:main
Choose a base branch
from
DolbyLaboratories:dolby/dont-adjust-video-codecs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c1476d3
Add a command-line option to bypass the mapping of dvhe to dvh1. Now…
gmcgarry 9b86cf7
Rename dont_adjust_video_codecs to strict_codecs_signaling.
gmcgarry 7d9230c
Fix typo.
gmcgarry 091bb4d
Add improved tests for DolbyVision profiles, including test for stric…
gmcgarry 87fa105
Fix lint failure.
gmcgarry d605620
pylint fixes.
gmcgarry d06d777
Address review feedback: ternary operator and tailing period.
gmcgarry 730f887
Fix line lengths. Don't reference supplemental_codec_ before initiali…
gmcgarry 4442e50
Add initialiser.
gmcgarry 3f3f6e6
Merge remote-tracking branch 'github.com/main' into dolby/dont-adjust…
gmcgarry 76a0a46
Fix merge botch.
gmcgarry f4deaa1
Use correct codec string for supplemental codecs.
gmcgarry File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
+200 KB
...tdata/dolby-vision-dvh1-p81-with-encryption/color_pattern_24_dvh1_081_1920x1080-video.mp4
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
packager/app/test/testdata/dolby-vision-dvh1-p81-with-encryption/output.m3u8
This file contains hidden or 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 @@ | ||
| #EXTM3U | ||
| ## Generated with https://github.com/shaka-project/shaka-packager version <tag>-<hash>-<test> | ||
|
|
||
| #EXT-X-INDEPENDENT-SEGMENTS | ||
|
|
||
| #EXT-X-STREAM-INF:BANDWIDTH=163596,AVERAGE-BANDWIDTH=162709,CODECS="hvc1.2.4.L120.b0",RESOLUTION=1920x1080,FRAME-RATE=24.000,VIDEO-RANGE=PQ,CLOSED-CAPTIONS=NONE | ||
| stream_0.m3u8 | ||
| #EXT-X-STREAM-INF:BANDWIDTH=163596,AVERAGE-BANDWIDTH=162709,CODECS="dvh1.08.03",RESOLUTION=1920x1080,FRAME-RATE=24.000,VIDEO-RANGE=PQ,CLOSED-CAPTIONS=NONE | ||
| stream_0.m3u8 |
36 changes: 36 additions & 0 deletions
36
packager/app/test/testdata/dolby-vision-dvh1-p81-with-encryption/output.mpd
This file contains hidden or 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,36 @@ | ||
| <?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" xmlns:cenc="urn:mpeg:cenc:2013" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" minBufferTime="PT2S" type="static" mediaPresentationDuration="PT10S"> | ||
| <Period id="0"> | ||
| <AdaptationSet id="0" contentType="video" width="1920" height="1080" frameRate="24000/1000" subsegmentAlignment="true" par="16:9"> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:MatrixCoefficients" value="9"/> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:ColourPrimaries" value="9"/> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:TransferCharacteristics" value="16"/> | ||
| <ContentProtection value="cenc" schemeIdUri="urn:mpeg:dash:mp4protection:2011" cenc:default_KID="31323334-3536-3738-3930-313233343536"/> | ||
| <ContentProtection schemeIdUri="urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b"> | ||
| <cenc:pssh>AAAANHBzc2gBAAAAEHfv7MCyTQKs4zweUuL7SwAAAAExMjM0NTY3ODkwMTIzNDU2AAAAAA==</cenc:pssh> | ||
| </ContentProtection> | ||
| <Representation id="0" bandwidth="163596" codecs="hvc1.2.4.L120.b0" mimeType="video/mp4" sar="1:1"> | ||
| <BaseURL>color_pattern_24_dvh1_081_1920x1080-video.mp4</BaseURL> | ||
| <SegmentBase indexRange="1356-1447" timescale="24000"> | ||
| <Initialization range="0-1355"/> | ||
| </SegmentBase> | ||
| </Representation> | ||
| </AdaptationSet> | ||
| <AdaptationSet id="1" contentType="video" width="1920" height="1080" frameRate="24000/1000" subsegmentAlignment="true" par="16:9"> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:MatrixCoefficients" value="9"/> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:ColourPrimaries" value="9"/> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:TransferCharacteristics" value="16"/> | ||
| <ContentProtection value="cenc" schemeIdUri="urn:mpeg:dash:mp4protection:2011" cenc:default_KID="31323334-3536-3738-3930-313233343536"/> | ||
| <ContentProtection schemeIdUri="urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b"> | ||
| <cenc:pssh>AAAANHBzc2gBAAAAEHfv7MCyTQKs4zweUuL7SwAAAAExMjM0NTY3ODkwMTIzNDU2AAAAAA==</cenc:pssh> | ||
| </ContentProtection> | ||
| <Representation id="0" bandwidth="163596" codecs="dvh1.08.03" mimeType="video/mp4" sar="1:1"> | ||
| <BaseURL>color_pattern_24_dvh1_081_1920x1080-video.mp4</BaseURL> | ||
| <SegmentBase indexRange="1356-1447" timescale="24000"> | ||
| <Initialization range="0-1355"/> | ||
| </SegmentBase> | ||
| </Representation> | ||
| </AdaptationSet> | ||
| </Period> | ||
| </MPD> |
22 changes: 22 additions & 0 deletions
22
packager/app/test/testdata/dolby-vision-dvh1-p81-with-encryption/stream_0.m3u8
This file contains hidden or 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,22 @@ | ||
| #EXTM3U | ||
| #EXT-X-VERSION:6 | ||
| ## Generated with https://github.com/shaka-project/shaka-packager version <tag>-<hash>-<test> | ||
| #EXT-X-TARGETDURATION:2 | ||
| #EXT-X-PLAYLIST-TYPE:VOD | ||
| #EXT-X-MAP:URI="color_pattern_24_dvh1_081_1920x1080-video.mp4",BYTERANGE="1356@0" | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790@1448 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:40899 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:40899 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:40899 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:40899 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXT-X-ENDLIST |
Binary file added
BIN
+195 KB
...ision-dvh1-p81-with-strict-codecs-signaling/color_pattern_24_dvh1_081_1920x1080-video.mp4
Binary file not shown.
9 changes: 9 additions & 0 deletions
9
packager/app/test/testdata/dolby-vision-dvh1-p81-with-strict-codecs-signaling/output.m3u8
This file contains hidden or 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 @@ | ||
| #EXTM3U | ||
| ## Generated with https://github.com/shaka-project/shaka-packager version <tag>-<hash>-<test> | ||
|
|
||
| #EXT-X-INDEPENDENT-SEGMENTS | ||
|
|
||
| #EXT-X-STREAM-INF:BANDWIDTH=159160,AVERAGE-BANDWIDTH=159160,CODECS="hvc1.2.4.L120.b0",RESOLUTION=1920x1080,FRAME-RATE=24.000,VIDEO-RANGE=PQ,CLOSED-CAPTIONS=NONE | ||
| stream_0.m3u8 | ||
| #EXT-X-STREAM-INF:BANDWIDTH=159160,AVERAGE-BANDWIDTH=159160,CODECS="dvh1.08.03",RESOLUTION=1920x1080,FRAME-RATE=24.000,VIDEO-RANGE=PQ,CLOSED-CAPTIONS=NONE | ||
| stream_0.m3u8 |
22 changes: 22 additions & 0 deletions
22
packager/app/test/testdata/dolby-vision-dvh1-p81-with-strict-codecs-signaling/stream_0.m3u8
This file contains hidden or 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,22 @@ | ||
| #EXTM3U | ||
| #EXT-X-VERSION:6 | ||
| ## Generated with https://github.com/shaka-project/shaka-packager version <tag>-<hash>-<test> | ||
| #EXT-X-TARGETDURATION:2 | ||
| #EXT-X-PLAYLIST-TYPE:VOD | ||
| #EXT-X-MAP:URI="color_pattern_24_dvh1_081_1920x1080-video.mp4",BYTERANGE="963@0" | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790@1055 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXT-X-ENDLIST |
Binary file added
BIN
+195 KB
...by-vision-dvh1-p81-with-supplemental-codecs/color_pattern_24_dvh1_081_1920x1080-video.mp4
Binary file not shown.
7 changes: 7 additions & 0 deletions
7
packager/app/test/testdata/dolby-vision-dvh1-p81-with-supplemental-codecs/output.m3u8
This file contains hidden or 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,7 @@ | ||
| #EXTM3U | ||
| ## Generated with https://github.com/shaka-project/shaka-packager version <tag>-<hash>-<test> | ||
|
|
||
| #EXT-X-INDEPENDENT-SEGMENTS | ||
|
|
||
| #EXT-X-STREAM-INF:BANDWIDTH=159160,AVERAGE-BANDWIDTH=159160,CODECS="hvc1.2.4.L120.b0",SUPPLEMENTAL-CODECS="dvh1.08.03/db1p",RESOLUTION=1920x1080,FRAME-RATE=24.000,VIDEO-RANGE=PQ,CLOSED-CAPTIONS=NONE | ||
| stream_0.m3u8 |
17 changes: 17 additions & 0 deletions
17
packager/app/test/testdata/dolby-vision-dvh1-p81-with-supplemental-codecs/output.mpd
This file contains hidden or 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,17 @@ | ||
| <?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" xmlns:scte214="urn:scte:dash:scte214-extensions" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" minBufferTime="PT2S" type="static" mediaPresentationDuration="PT10S"> | ||
| <Period id="0"> | ||
| <AdaptationSet id="0" contentType="video" width="1920" height="1080" frameRate="24000/1000" subsegmentAlignment="true" par="16:9"> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:MatrixCoefficients" value="9"/> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:ColourPrimaries" value="9"/> | ||
| <SupplementalProperty schemeIdUri="urn:mpeg:mpegB:cicp:TransferCharacteristics" value="16"/> | ||
| <Representation id="0" bandwidth="159160" codecs="hvc1.2.4.L120.b0" mimeType="video/mp4" scte214:supplementalCodecs="dvh1.08.03" scte214:supplementalProfiles="db1p" sar="1:1"> | ||
| <BaseURL>color_pattern_24_dvh1_081_1920x1080-video.mp4</BaseURL> | ||
| <SegmentBase indexRange="967-1058" timescale="24000"> | ||
| <Initialization range="0-966"/> | ||
| </SegmentBase> | ||
| </Representation> | ||
| </AdaptationSet> | ||
| </Period> | ||
| </MPD> |
22 changes: 22 additions & 0 deletions
22
packager/app/test/testdata/dolby-vision-dvh1-p81-with-supplemental-codecs/stream_0.m3u8
This file contains hidden or 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,22 @@ | ||
| #EXTM3U | ||
| #EXT-X-VERSION:6 | ||
| ## Generated with https://github.com/shaka-project/shaka-packager version <tag>-<hash>-<test> | ||
| #EXT-X-TARGETDURATION:2 | ||
| #EXT-X-PLAYLIST-TYPE:VOD | ||
| #EXT-X-MAP:URI="color_pattern_24_dvh1_081_1920x1080-video.mp4",BYTERANGE="967@0" | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790@1059 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXTINF:2.000, | ||
| #EXT-X-BYTERANGE:39790 | ||
| color_pattern_24_dvh1_081_1920x1080-video.mp4 | ||
| #EXT-X-ENDLIST |
Binary file added
BIN
+195 KB
...ger/app/test/testdata/dolby-vision-dvh1-p81/color_pattern_24_dvh1_081_1920x1080-video.mp4
Binary file not shown.
This file contains hidden or 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 @@ | ||
| #EXTM3U | ||
| ## Generated with https://github.com/shaka-project/shaka-packager version <tag>-<hash>-<test> | ||
|
|
||
| #EXT-X-INDEPENDENT-SEGMENTS | ||
|
|
||
| #EXT-X-STREAM-INF:BANDWIDTH=159160,AVERAGE-BANDWIDTH=159160,CODECS="hvc1.2.4.L120.b0",RESOLUTION=1920x1080,FRAME-RATE=24.000,VIDEO-RANGE=PQ,CLOSED-CAPTIONS=NONE | ||
| stream_0.m3u8 | ||
| #EXT-X-STREAM-INF:BANDWIDTH=159160,AVERAGE-BANDWIDTH=159160,CODECS="dvh1.08.03",RESOLUTION=1920x1080,FRAME-RATE=24.000,VIDEO-RANGE=PQ,CLOSED-CAPTIONS=NONE | ||
| stream_0.m3u8 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.