rlxone / Equinox

🌇 🌃 Create dynamic wallpapers for macOS.
https://equinoxmac.com
MIT License
1.17k stars 37 forks source link

writeImageAtIndex:962: *** CMPhotoCompressionSessionAddImage: err = kCMPhotoError_UnsupportedOperation [-16994] (codec: 'hvc1') #66

Closed allape closed 1 week ago

allape commented 4 months ago

An issue or a feature request

writeImageAtIndex:962: *** CMPhotoCompressionSessionAddImage: err = kCMPhotoError_UnsupportedOperation [-16994] (codec: 'hvc1')

Device and System

Appearance

l11n: Localization.Wallpaper.Create.failureDescription

image

Commit ID: e831db45a4848b61a156745b1fc8e1492e7510cc

image

Assets(images from https://github.com/rlxone/Equinox/tree/main/repo)

-

Changing the pixel format from yuvj420p to yuvj444p of screen1.jpg with ffmpeg -hide_banner -i screen1.jpeg -pix_fmt yuvj444p screen1.yuvj444p.jpg, or changing format from jpg to png , then everything works okay.

image

kyleerhabor commented 3 months ago

The issue seems to stem from using kCGImageDestinationLossyCompressionQuality with 1.0 (lossless) in ImageIO. I've managed to workaround it locally by assigning the compression quality to a really high number (0.9999999, anything higher seems to get treated as lossless).