[FFmpeg-devel] [PATCH 4/4] avcodec/libx265: encode dovi RPUs

Cosmin Stejerean cosmin at cosmin.at
Tue Mar 19 23:59:53 EET 2024



> On Mar 19, 2024, at 2:39 PM, Derek Buitenhuis <derek.buitenhuis at gmail.com> wrote:
> 
> The reason I never implemented this back when I adde RPU side data is that
> there is a strong chance of generating broken files.
> 
> That's because if we do anything to the video with swscale, etc., we're
> now encoding RPUs that aren't meant to be applied to that converted video.
> 
> For example, this could end up propagating RPUs when the user is tonemapping.

Would it be possible to only propagate RPUs if the color params are not changing? If there's any change from say PQ to HLG or HLG to PQ or tonemapping then we wouldn't want to propagate RPUs. If the color params are not changing then propagating RPUs by default seems sensible, and perhaps a filter can be added to explicitly clear RPUs if they should not be propagated.

- Cosmin


More information about the ffmpeg-devel mailing list