How to produce 4K HDR youtube video
I want to thank those how have helped me over the last couple of years with ffmpeg.
I have produced several videos with ffmpeg and posted a couple of 4K SDR timelapses on youtube. They worked great.
I also want to put 4K HDR 10-bit/channel video on youtube and have struggled to find the right settings.
The videos below were produced entirely with ffmpeg (with some pre-work in audacity editing the 5.1 surround sound).
I first made the complete video in prores yuv422p10le
Then I converted the video to 420 with -pix_fmt yuv420p10le -crf 17 -c:v hevc -x265-params colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc
and played it on an LG OLED TV via a USB stick. The TV shows that is it HDR and the video looks great (to me).
Ffmpeg shows it as:
hevc (hev1 / 0x31766568), yuv420p10le(tv, bt2020nc/bt2020/smpte2084, progressive), 3840x2160, q=2-31, 59.94 fps
I converted for youtube with the following
ffmpeg -probesize 100M -i input-prores-422.mkv -crf 17 -preset slow -c:a aac -c:v hevc -pix_fmt yuv420p10le -x265-params colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc -movflags +faststart output-youtube.mp4
Ffmpeg also shows the result as yuv420p10le as above.
I uploaded to youtube and the uploaded file is here (I hope this is OK to post here):
https://www.youtube.com/watch?v=VWR1nlZn22U
When played youtube on my LG OLED TV, the TV does not report it as HDR, and there are posterization artifacts typical of that when I played my video (before youtube) on an SDR display.
So what can I do to get youtube to play 4K HDR?