[FFmpeg-devel] [PATCH] lavc/hevc Parse SEI_TYPE_MASTERING_DISPLAY_INFO and propagate contents into the AVMasteringDisplayMetadata side data.

Hendrik Leppkes h.leppkes at gmail.com
Fri Feb 5 08:04:18 CET 2016


On Fri, Feb 5, 2016 at 3:05 AM, Neil Birkbeck <neil.birkbeck at gmail.com> wrote:
> According to the ITU-T H.265 v3, in Table D - 1, the persistence scope
> of the mastering display metadata is "The Coded Video Sequence (CVS)
> containing the SEI message". So I guess we want to clear when we start
> the next CVS, so I guess when we see the next IDR frame.
>
> Given that the SEI comes before the IDR, I don't see a great way to do
> this aside from initializing the flag to 2 and decrementing (when > 0)
> when we see an IDR.
>

The usual way I would handle such SEI metadata is just to send the
sidedata once when it appears in the bitstream and not repeat it with
every single frame, and let the user worry about its lifetime.

- Hendrik


More information about the ffmpeg-devel mailing list