shaka-packager/packager/media/formats
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
..
dvb Fix transparency case in DVB-SUB. 2021-03-29 16:34:39 +00:00
mp2t fix: Parse one frame mpeg-ts video (#1015) 2022-10-27 20:22:17 -07:00
mp4 feat: Write colr atom to muxed mp4 (#1261) 2023-08-29 18:46:19 -07:00
packed_audio cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00
ttml fix: TTML generator timestamp millisecond formatting (#1179) 2023-07-05 14:28:57 -07:00
webm chore: Update URLs after moving projects (#1042) 2022-03-07 11:56:34 -08:00
webvtt fix: webvtt single cue do not fail on EOS (#1061) 2022-06-02 09:27:47 -07:00
wvm cleanup: Convert all time parameters to signed 2021-08-05 18:24:15 +00:00