Skip to content

Commit

Permalink
feat: Add support for Dolby Vision based on AVC and AV1 (#6154)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored Jan 24, 2024
1 parent 00fb1ba commit c100053
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/cea/mp4_cea_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ shaka.cea.Mp4CeaParser = class {
.box('avc3', codecBoxParser)
.box('hev1', codecBoxParser)
.box('hvc1', codecBoxParser)
.box('dvav', codecBoxParser)
.box('dva1', codecBoxParser)
.box('dvh1', codecBoxParser)
.box('dvhe', codecBoxParser)

Expand Down Expand Up @@ -374,7 +376,10 @@ shaka.cea.Mp4CeaParser.CodecBitstreamMap_ = {
'avc3': shaka.cea.Mp4CeaParser.BitstreamFormat.H264,
'hev1': shaka.cea.Mp4CeaParser.BitstreamFormat.H265,
'hvc1': shaka.cea.Mp4CeaParser.BitstreamFormat.H265,
// Dobly vision is also H265.
// Dolby Vision based in AVC
'dvav': shaka.cea.Mp4CeaParser.BitstreamFormat.H264,
'dva1': shaka.cea.Mp4CeaParser.BitstreamFormat.H264,
// Dolby Vision based in HEVC
'dvh1': shaka.cea.Mp4CeaParser.BitstreamFormat.H265,
'dvhe': shaka.cea.Mp4CeaParser.BitstreamFormat.H265,
};
Expand Down
4 changes: 3 additions & 1 deletion lib/util/manifest_parser_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ shaka.util.ManifestParserUtils.VIDEO_CODEC_REGEXPS_ = [
/^hvc/,
/^vp0?[89]/,
/^av01/,
/^dvh/,
/^dvh/, // Dolby Vision based in HEVC
/^dva/, // Dolby Vision based in AVC
/^dav/, // Dolby Vision based in AV1
];


Expand Down

0 comments on commit c100053

Please sign in to comment.