shaka-packager/packager/media
Caitlin O'Callaghan f264befe86
feat: Write colr atom to muxed mp4 (#1261)
This PR is an extension of the full AV1 codec string feature: [PR
1205](https://github.com/shaka-project/shaka-packager/pull/1205) and
relates to [Issue
1007](https://github.com/shaka-project/shaka-packager/issues/1007) and
[Issue
1202](https://github.com/shaka-project/shaka-packager/issues/1202).

As per the AV1 spec, the codec string may contain optional color values.
These color values are critical for detecting HDR video streams - see
[Issue
1007](https://github.com/shaka-project/shaka-packager/issues/1007).
Color information is extracted from the input mp4's `colr` atom and used
to generate the full AV1 codec string. This PR preserves the color
information by writing the `colr` atom to the muxed mp4.

**References**:
- [AV1 Codec ISO Media File Format
Binding](https://aomediacodec.github.io/av1-isobmff/#codecsparam)
- [AV1 Bitstream & Decoding Process
Specification - Section 6.4.2 Color config semantics (page
117)](https://aomediacodec.github.io/av1-spec/av1-spec.pdf)
- [QuickTime File Format
Specification](https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap3/qtff3.html#//apple_ref/doc/uid/TP40000939-CH205-125526)
2023-08-29 18:46:19 -07:00
..
base feat: Write colr atom to muxed mp4 (#1261) 2023-08-29 18:46:19 -07:00
chunking Low latency DASH support (#979) 2021-08-25 08:38:05 -07:00
codecs feat: Generate the entire AV1 codec string when the colr atom is present (#1205) 2023-08-04 09:00:59 -07:00
crypto cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
demuxer fix: Fix failure on very short WebVTT files (#1216) 2023-07-12 09:07:07 -07:00
event Fix for gap size warning in Low Latency mode (#985) 2021-09-03 09:57:43 -07:00
formats feat: Write colr atom to muxed mp4 (#1261) 2023-08-29 18:46:19 -07:00
origin Address gcc build failures in some platforms 2017-12-07 11:45:26 -08:00
public Low latency DASH support (#979) 2021-08-25 08:38:05 -07:00
replicator Address gcc build failures in some platforms 2017-12-07 11:45:26 -08:00
test fix: Fix handling of non-interleaved multi track FMP4 files (#1214) 2023-08-21 16:34:32 -07:00
trick_play cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00