zzag / plasma5-wallpapers-dynamic

Dynamic wallpaper plugin for KDE Plasma
328 stars 18 forks source link

Failed to encode image, no codec available #115

Closed Hatrian closed 8 months ago

Hatrian commented 2 years ago

I'm trying to use kdynamicwallpaperbuilder to make my own dynamic wallpaper but when I run the command it tells me "Failed to encode [my image path]: No codec available". I'm assuming it's because my linux install (KDE Neon) doesn't support avif out of the box, but I'm not sure how to find/install a codec that would make this work.

zzag commented 2 years ago

Do you have rav1e installed?

Hatrian commented 2 years ago

I just installed it (I think?) and still have the same issue.

jannesblm commented 2 years ago

Same problem on Void Linux; I manually compiled libavif and enabled rav1e (-DAVIF_CODEC_RAV1E). Newer versions of libavif seem to require a third parameter for the functions avifImageYUVToRGB(p1, p2, AVIF_YUV_TO_RGB_DEFAULT) (and vice versa) in kdynamicwallpaperreader/writer.cpp, relinked and kdynamicwallpaperbuilder worked as intended.

EDIT: The changes only applied to a development version and are not necessary as of now (V0.11)

zzag commented 1 year ago

Newer versions of libavif seem to require a third parameter for the functions avifImageYUVToRGB(p1, p2, AVIF_YUV_TO_RGB_DEFAULT)

Huh what version is that? On my machine with libavif 0.11, I see no such third parameter in avifImageYUVToRGB or avifImageRGBToYUV

jannesblm commented 1 year ago

Huh what version is that?

Apologies, seems like I was using a development version then. There were some API changes which have since been reverted. So it should theoretically work fine without any changes when manually compiling.

zzag commented 1 year ago

Phew! @Hatrian did you use development version too?

zzag commented 8 months ago

dup of #114