AV1 SDR Videos decoded as HDR Videos in playlist in macOS
Hi,
Currently if we have a playlist with different medias like HDR and Non-HDR of AV1(tested only AV1 and HEVC) in VLC macOS, the SDR videos are also treated and decoded as HDR Videos in macOS if the previous video in the playlist is HDR Video, or if an SDR video was played previously then the HDR Video is played as SDR Video, but if we play them individually the HDR Metadata being parsed properly and encoded correctly. This behaviour is noticed only with HDR AV1 streams, did not test with H.264/VP9. If we have a HEVC HDR Stream, then VLC does playback correctly and this behaviour is not seen.
Video Grab of the issue: video
Debug Logs: vlc_sdr_hdr_av1.txt
Samples:
- AV1 HDR Encode: Chimera_3840x2160_59.94_10bit_420_420-550.y4m_hdr.ivf
- AV1 SDR Encode: Chimera_3840x2160_59.94_10bit_420_420-550.y4m_sdr.ivf
- x265 HDR Encode: Chimera_3840x2160_59.94_10bit_420_420-550.y4m_hdr_x265
I also tried to feed transcoded version of the encoded video with more metadata inside mp4 with ffmpeg(hdr_video_av1), it has same behaviour.
Details:
- VLC Version: VLC 3.0.16 ARM Version
- MacOS Version: 12.2
- Device: MBP 14" M1 Pro