-
Notifications
You must be signed in to change notification settings - Fork 507
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
AV1 encoding missing color metadata #1202
Labels
status: archived
Archived and locked; will not be updated
Comments
Thank you for the detailed write-up! PRs are very welcome. |
This was referenced Jul 24, 2023
This was referenced Aug 29, 2023
joeyparrish
pushed a commit
that referenced
this issue
Aug 30, 2023
This PR is an extension of the full AV1 codec string feature: [PR 1205](#1205) and relates to [Issue 1007](#1007) and [Issue 1202](#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](#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)
Closed by #1261 |
github-actions
bot
added
the
status: archived
Archived and locked; will not be updated
label
Oct 29, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Given any AV1 encoding in MP4 format, the output MPD is missing color information from the dash codec string, and the output mp4 is missing the color information in
av1C
(the entirecolr
box is missing).The color fields are optional, so the current output is a valid MPD. Previously packager used to output only partial color information which was incorrect, as the optional fields are mutually inclusive (all or none). Related issue was #453 and this was fixed in 53aa775 by removing all the optional fields.
Instead we should properly parse the color information from
av1C/colr
, populate the dash codec string, and then also pass down thecolr
atom inav1C
.The text was updated successfully, but these errors were encountered: