Blue_MiSfit
13th October 2019, 21:56
Hey gang!
I'd like to mess around with encoding some wide gamut HEVC images for iOS.
I'm an amateur photographer for fun, and have a nice DSLR so I have some images with big fat gamut. Lightroom works natively in ProPhoto and can export TIFF as Display P3 which is the native space of modern iDevices
I can encode these into HEVC with ffmpeg / x265 without too much trouble, but I'm not sure I'm doing the RGB -> YCbCr in such a way that I preserve the full range and color space.
I think I want to take 16 bpc full range RGB using Display P3 (so P3 primaries and matrix and sRGB transfer), and make full range YCbCr again using P3 primaries and matrix and sRGB transfer. I think 4:4:4 10 bit is ideal. Maybe this should be limited range YCbCr too? Not sure. I think JPEGs use full range YCbCr usually so I'd imagine that's fine in this case too.
The problem is, I don't see P3 as one of the options in x265 for primaries and matrix.
Aside from that I have to do the fMP4 muxing with HEIF compliance. I looked into the nokia open source project but it's pretty low level. I'll dig into that when I get there.
Any suggestions on the encoding?
I'd like to mess around with encoding some wide gamut HEVC images for iOS.
I'm an amateur photographer for fun, and have a nice DSLR so I have some images with big fat gamut. Lightroom works natively in ProPhoto and can export TIFF as Display P3 which is the native space of modern iDevices
I can encode these into HEVC with ffmpeg / x265 without too much trouble, but I'm not sure I'm doing the RGB -> YCbCr in such a way that I preserve the full range and color space.
I think I want to take 16 bpc full range RGB using Display P3 (so P3 primaries and matrix and sRGB transfer), and make full range YCbCr again using P3 primaries and matrix and sRGB transfer. I think 4:4:4 10 bit is ideal. Maybe this should be limited range YCbCr too? Not sure. I think JPEGs use full range YCbCr usually so I'd imagine that's fine in this case too.
The problem is, I don't see P3 as one of the options in x265 for primaries and matrix.
Aside from that I have to do the fMP4 muxing with HEIF compliance. I looked into the nokia open source project but it's pretty low level. I'll dig into that when I get there.
Any suggestions on the encoding?