-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fails on Catalina with AVEBridge Error: AVEEncoder_CreateInstance: returning err = -12908 #5
Comments
I edited my comment since I originally thought it was failing, but I see the conversion is completed despite the errors. |
Did you recompile it with a new XCode? I've just done it and published v0.3. I don't see any errors in the console with both older and new versions. |
Thanks for the response! I tried compiled and interpreted and got the same thing. But I don't have the full Xcode installed, just the command line tools. Maybe I need the full install? My swiftc version is:
|
I am getting that error too. However, I also get it when using I assume this is an OS issue (mine is 10.15.4 (19E287)) |
That's interesting. My binary works on the same Catalina 10.15.4 (19E287). And |
Well, the binary works! The conversion process also works normally (AFAICT), just there is more output than expected. |
The same "extra" output appears for me as well. The converted image is fine. I am converting images with Q=1 option or Lossless in Preview. I am using script below for converting all images in a folder: for x in *.jpeg; do echo "$x"; HEIF -q=1 "$x"; done; When using Preview for this task, some of the images are corrupted - there is thin line of colors on the top. Like this: While the same image, converted with this script is fine. |
It's not nearly as clean, but I later ended up using a combination of ffmpeg and mp4box to do my HEIF encoding. Just thought I'd share in case others here were interested. |
@aikinai What's the advantage of your script over using |
@sn0wyfall I haven't tested to be sure, but I would expect x265 to provide higher quality encoding than Apple. Apple does encode billions of images on iPhones and likely cares about quality to a certain extent, but I assume they are using hardware and optimizing for speed and power consumption, with quality the third priority or so. I also don't know how that code flows back to their MacOS implementation. On the other hand, x265 seems to be the highest-quality encoder available, and it has no reason to be prioritizing speed or hardware-compatibility over quality. Of course this is just speculation, and could be easily verified or disproved with a real head-to-head comparison, but I don't have time to spend doing that so I just assumed x265 is better. |
@aikinai Thanks for the reply. You're right, I heard hardware accelerated encoding sacrificed quality. I wish I saw your comment before encoding thousands of images. I prefer retaining quality over speed. I'll compare your tool and sips and I'll report back with my findings. |
@aikinai I did a blind test on four images. I used your script to encode with RF 26 and then generated sips images with many quality values, and chose the one that was closest in size. In all four cases I preferred the sips image when viewing at a 1:1 ratio. In my experience it was able to hold more detail despite having a comparable file size. It seems like if Apple is using hardware accelerated encoding, it's extremely good. In conclusion, at least for me I prefer using sips as it's fast and quite easy to use (also wrote a script to use it). Anyway, thanks for introducing me to the x265 encoding tool. Cool to know about it. |
@sn0wyfall Cool, thanks for doing the test! I commented on the other issue for how to change CRF if you want to try other sizes, but this is great to know. Maybe I'll switch back to sips too then. |
sn0wyfall did an experiment and found that the native MacOS encoder seems better then x265 for now. biodranik/HEIF#5 (comment)
This seems to finally be fixed at least on Big Sur on Apple Silicon. |
Anyone knows if this is fixed/being addressed by Apple for non-Apple (i.e. Intel) based macs? |
Experiencing this also on intel and bigSur 11.4 |
It works without warnings on Intel Big Sur 11.6. |
@bartzy does it work despite the error log? |
It does work despite the error log in my case. The setup I followed is the one here |
@biodranik Interesting! I'll upgrade soon and test as well.
It does work (with the warning) on Big Sur 11.5.2. |
@biodranik I upgraded to Big Sur 11.6 (MBP 16" 2019 i9) and I still get the warning. |
MBP 2014 - no warning neither for sips nor for my HEIF binary. Do you have the latest XCode installed? |
Xcode 13.0 (13A233). I guess this is a hardware thing. Probably something to do with the GPU on my MBP. |
I've tested on a MBP 16" i9 with a Radeon 5500M, there is still a warning like this. I think it's a Apple internal framework issue and we can do nothing. Actually, Related: mczachurski/wallpapper#42 |
Seems to be throwing this error on Catalina:
The text was updated successfully, but these errors were encountered: