Investigate HEVC/H.265 encoding using free chapter from Jan Ozer FFmpeg book
Apple have decided to stadardise on HEVC/H.265 video encoding in macOS High Sierra and iOS 11. Jan Ozer has written a book about how to encode video using the free FFmpeg encoding system.
Below you can download a sample chapter of my new book, Learn to Produce Video with FFmpeg in 30 Minutes or Less. It’s Chapter 12 Encoding HEVC
PS: Although he doesn’t cover HDR in this free chapter, investigate the X.265 documentation on the subject.