cavif icon indicating copy to clipboard operation
cavif copied to clipboard

depth encoding

Open sergeygross opened this issue 2 years ago • 1 comments

Hi! In console help I see I can attach depth.avif to my final.avif. --attach-depth Attach depth plane

But how should I create depth.avif if there is no such option? I need to encode depth map from png to 12-bit avif file. Thanks!

sergeygross avatar Feb 06 '22 21:02 sergeygross

A depth image is just an monochrome image. You can create like this:

cavif -i <depth.png> -o <output-depth.avif> --monochrome
cavif -i <image.png> -o <output-with-depth.avif> --attach-depth <output-depth.avif>

However, it looks --attach-depth is not working currently. I'm fixing this problem.

Do you know the AVIF reader that understand depth image? I would like to test.

ledyba-z avatar Mar 15 '22 01:03 ledyba-z