plasma5-wallpapers-dynamic icon indicating copy to clipboard operation
plasma5-wallpapers-dynamic copied to clipboard

Failed to encode image, no codec available

Open Hatrian opened this issue 3 years ago • 3 comments

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.

Hatrian avatar Aug 12 '22 09:08 Hatrian

Do you have rav1e installed?

zzag avatar Aug 12 '22 09:08 zzag

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

Hatrian avatar Aug 12 '22 10:08 Hatrian

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)

jannesblm avatar Sep 06 '22 18:09 jannesblm

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

zzag avatar Nov 18 '22 07:11 zzag

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.

jannesblm avatar Nov 18 '22 12:11 jannesblm

Phew! @Hatrian did you use development version too?

zzag avatar Nov 18 '22 13:11 zzag

dup of #114

zzag avatar Jan 14 '24 22:01 zzag