[FFmpeg-devel] [PATCH v2 1/4] lavu/frame: Add Dolby Vision metadata side data type

Niklas Haas ffmpeg at haasn.xyz
Thu Dec 9 23:46:47 EET 2021


On Thu, 09 Dec 2021 17:21:58 +0000 Derek Buitenhuis <derek.buitenhuis at gmail.com> wrote:
> On 12/8/2021 10:12 AM, Niklas Haas wrote:
> > +/* based on guesswork, see mkvtoolnix and dovi_tool */
> > +int av_dovi_profile(const AVDOVIRpuDataHeader *hdr)
> > +{
> 
> The correct way to find the profile is from the stream level
> DOVI configuration record side data, if available.

So, I changed the API to accept the DOVI configuration record, but
actually getting that record into hevcdec isimpossible given the current
design of FFmpeg where stream-level properties are not mode available to
the decoder. Possibilities:

1. Add patch to propagate stream-level properties to
   AVCodecContext.coded_side_data automatically
2. Add patch to automatically propagate stream-level properties to each
   AVPacket somehow?
3. Have the code read the profile from the AVPacket even though the side
   data doesn't exist for them, and let this just be an open bug.
4. Something else?

Thoughts?


More information about the ffmpeg-devel mailing list