'How can I generate HDR10 video from 16bit png images in browser using ffmpeg.wasm

Using FFMPEG.WASM I am able to generate video using libx264 encoder but unable to display the video generated using libx265. The image that I am using is the 16bit png image with linear gamma icc profile - AllColorsRGB-elle-V2-g10.icc. Here are the parameters that I used while encoding the hdr10 video.
-i abc.png -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
-pix_fmt yuv420p10le out.mov



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source