How to render png's as h.265 12 bit video? ffmpeg -framerate 500/21 -i %d.png -i audio.wav -c:v libx264 -crf 0 -pix_fmt yuv422p10le -c copy output.mkv


I have the above command for converting a png sequence of images into 10 bit h.264 video file.

I want to know: how do I modify it to render my png sequences as a 12 bit h.265 video? Or do I need a completely different command and what would that be? 

Aside:
I noticed it in handbreak, but I see alot of complaints that handbreak isn't as clean an encode as raw ffmpeg? I don't know if there's any basis to that or if I should just do it in handbreak instead.
Use

ffmpeg -framerate 500/21 -i %d.png -i audio.wav -c:v libx265 -x265-params lossless=1 -pix_fmt yuv422p12le -c:a copy output.mkv


You'll need a ffmpg with a libx265 that supports a bit depth of 12. At this time, I can't find such a precompiled binary so you'll have to compile ffmpeg using the auto-build script at https://github.com/jb-alvarado/media-autobuild_suite