Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
allape opened this issue Apr 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@allape
Copy link

allape commented Apr 26, 2024

An issue or a feature request

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

Device and System

  • MacBook Pro, 15-inch, 2019
  • macOS 14.4.1 (23E224)

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
Copy link

kyleerhabor commented May 31, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants