Hdmi yuv422

Hi,
The existing implementation is specific to video playback of HDR content. Please follow the steps to give it a try:

  1. Generate HDR content.

Please refer to
https://codecalamity.com/encoding-uhd-4k-hdr10-videos-with-ffmpeg/

Can generate the HDR content by running the command:

ffmpeg  -i input.mp4 -map 0 -c:v libx265 -x265-params hdr-opt=1:repeat-headers=1:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc:master-display=G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(40000000,50):max-cll=0,0 -crf 20 -preset veryfast -pix_fmt yuv420p10le Converted.h265
  1. Disable X11 after booting:
$ sudo systemctl stop gdm
$ sudo loginctl terminate-seat seat0
  1. Run 08 sample:
08_video_dec_drm$ sudo ./video_dec_drm converted.265 H265 --disable-ui

For your use-case, you would like to boot the system and run in YUV mode. This is not supported by default. On default release, the system is booted in RGB mode and when we want to play a HDR stream, it switches to YUV mode. When playback ends, it goes back to RGB mode.

1 Like