Open Jamaika1 opened 7 years ago
It turned out my mistake. I wanted to use RGB-YCoCg {mct} color conversion, which is forbidden for yuv '-F'. Is it possible to import yuv rgb24 or rgba photos. Reportedly an alpha channel is possible for jpeg2000 part16 and is fully compatible with heif/avif. I have not tested if the matrix colors are correct for mct zero
I am surprised that viewers for jpeg2000 expect rgb24 and not yuv444p. https://i.ibb.co/mJvq4g9/ucsnath.png ffmpeg -i import -f rawvideo -pix_fmt yuv444p yuv444p.yuv ffmpeg -i import -f rawvideo -pix_fmt rgb24 rgb24.yuv ffmpeg -i import -f rawvideo -pix_fmt rgba rgba.yuv Lossless rgb conversion to ycocg was supposed to reduce file size. What about HDR with heif/avif photos? https://github.com/aous72/OpenJPH/pull/53
I don't know, does command add 'force-rgb' by decoding?