Solved HEIC image fails to load DLL to decode
#1
Hello

I am running the latest nightly with the HEIC plugin installed.

HEIC files will not render as the DLL fails to load.  iPhone 11, IOS 14.2

debug log:  https://paste.kodi.tv/erunagedep.kodi

sample file:  https://ufile.io/erot3p8o

Let me know what you guys think// THANKS

2020-12-08 17:53:10.153 T:4584    DEBUG <general>: CInputManager::HandleKey: up (0xf080) pressed, action is Up
2020-12-08 17:53:10.234 T:5268    DEBUG <general>: ADDON: Dll Initializing - HEIF image decoder
2020-12-08 17:53:10.234 T:5268    DEBUG <general>: SECTION:LoadDLL(C:\Users\doug\AppData\Roaming\Kodi\addons\imagedecoder.heif\imagedecoder.heif.dll)
2020-12-08 17:53:10.243 T:5268    ERROR <general>: AddOnLog: imagedecoder.heif: Unsupported feature: Unsupported codec
2020-12-08 17:53:10.243 T:5268    DEBUG <general>: CTexture::LoadFromFileInternal - Load of smb://cronos/cronos_full/pictures/IMG_7137.HEIC failed.
2020-12-08 17:53:10.243 T:5268    DEBUG <general>: SECTION:UnloadDll(C:\Users\doug\AppData\Roaming\Kodi\addons\imagedecoder.heif\imagedecoder.heif.dll)
2020-12-08 17:53:10.244 T:5268     INFO <general>: ADDON: Dll Destroyed - HEIF image decoder
2020-12-08 17:53:10.246 T:6032    DEBUG <general>: CTextureCache::CTextureCache::CacheImage - Return NULL texture because cache is not ready
Reply
#2
i tried this. it works fine on linux, so i'm a little confused why it would fail on windows. i have no windows dev env so i can't look into it more sadly.
Reply
#3
(2021-01-27, 21:18)spiff Wrote: i tried this. it works fine on linux, so i'm a little confused why it would fail on windows. i have no windows dev env so i can't look into it more sadly.

hey spiff, I have probably a similar problem, here is my log:

Code:
2021-01-30 15:27:59.175 T:235320   DEBUG: ADDON: Dll Initializing - HEIF image decoder
2021-01-30 15:27:59.175 T:235320   DEBUG: SECTION:LoadDLL(C:\Users\xx\AppData\Roaming\Kodi\addons\imagedecoder.heif\imagedecoder.heif.dll)
2021-01-30 15:27:59.177 T:235320   ERROR: AddOnLog: HEIF image decoder: Unsupported feature: Unsupported codec
2021-01-30 15:27:59.177 T:235320   DEBUG: CBaseTexture::LoadFromFileInternal - Load of smb://xxxxxxxxxxxxx.HEIC failed.
2021-01-30 15:27:59.177 T:235320   DEBUG: SECTION:UnloadDll(C:\Users\xx\AppData\Roaming\Kodi\addons\imagedecoder.heif\imagedecoder.heif.dll)
2021-01-30 15:27:59.177 T:235320    INFO: ADDON: Dll Destroyed - HEIF image decoder

Could this be related?
https://github.com/strukturag/libheif/issues/90

Otherwise, any way to help out with more logging or with debugging environment?
Reply
#4
No idea but perhaps more likely https://github.com/strukturag/libheif/issues/208 which was fixed by https://github.com/strukturag/libde265/pull/257
Reply
#5
(2021-01-30, 16:50)jjd-uk Wrote: No idea but perhaps more likely https://github.com/strukturag/libheif/issues/208 which was fixed by https://github.com/strukturag/libde265/pull/257

Thank you, that sounds plausible. In my case these pictures are from iOS devices as well.
Reply
#6
Maybe that issue could give @spiff a clue as to what could be going wrong, assuming it is connected that is.
Reply
#7
I tried building the official addon in github xbmc repo for Leia but with 1.0.8 libde265 instead of 1.0.5. However the only thing I end up with is "%1 is not a valid Win32 ...." while loading the DLL for picture display in Kodi... Help...
Reply
#8
(2021-02-08, 22:50)ralfonat Wrote: I tried building the official addon in github xbmc repo for Leia but with 1.0.8 libde265 instead of 1.0.5. However the only thing I end up with is "%1 is not a valid Win32 ...." while loading the DLL for picture display in Kodi... Help...

OK seems like that was due to trying a 32bit DLL on 64bit kodi.

Finally have HEIC/HEIF pics from iPhone working in Kodi Leia. Here is the commit: https://github.com/kongomongo/imagedecod...2a4c348942

I am not sure anymore if the bump to libheif or the libde265 made it working due to tedious build issues as a newb...

But its finally working.
Reply
#9
Thread marked solved.
Reply
#10
how will this make it into the nightlies?  should be in tonights compile?
Reply
#11
(2021-02-17, 13:41)ralfonat Wrote:
(2021-02-08, 22:50)ralfonat Wrote: I tried building the official addon in github xbmc repo for Leia but with 1.0.8 libde265 instead of 1.0.5. However the only thing I end up with is "%1 is not a valid Win32 ...." while loading the DLL for picture display in Kodi... Help...

OK seems like that was due to trying a 32bit DLL on 64bit kodi.

Finally have HEIC/HEIF pics from iPhone working in Kodi Leia. Here is the commit: https://github.com/kongomongo/imagedecod...2a4c348942

I am not sure anymore if the bump to libheif or the libde265 made it working due to tedious build issues as a newb...

But its finally working.
Hi,
can you please tell me how to download and install https://github.com/kongomongo/imagedecod...2a4c348942 ?
I don't see "download" button anywhere. 
Many thanks
Dawid
Reply
#12
I installed git hub browser but it cannot find git hub user kongomongo from your link. Can you please tell me how to download/install this decoder?
Reply
#13
(2021-02-25, 10:01)deedee7 Wrote:
(2021-02-17, 13:41)ralfonat Wrote:
(2021-02-08, 22:50)ralfonat Wrote: I tried building the official addon in github xbmc repo for Leia but with 1.0.8 libde265 instead of 1.0.5. However the only thing I end up with is "%1 is not a valid Win32 ...." while loading the DLL for picture display in Kodi... Help...

OK seems like that was due to trying a 32bit DLL on 64bit kodi.

Finally have HEIC/HEIF pics from iPhone working in Kodi Leia. Here is the commit: https://github.com/kongomongo/imagedecod...2a4c348942

I am not sure anymore if the bump to libheif or the libde265 made it working due to tedious build issues as a newb...

But its finally working.
Hi,
can you please tell me how to download and install https://github.com/kongomongo/imagedecod...2a4c348942 ?
I don't see "download" button anywhere. 
Many thanks
Dawid
Reply
#14
Could you please compile a zip to be installed on Windows 10 Kodi 18?
Reply
#15
(2021-02-28, 00:48)alfa756 Wrote: Could you please compile a zip to be installed on Windows 10 Kodi 18?

While I don't feel great putting binaries up, if you trust this you can try these (install via "install zip addon")

Kodi 18 
http://a.pomf.cat/lpfdiu.zip

Kodi 19 matrix
http://a.pomf.cat/xjrmou.zip
Reply

Logout Mark Read Team Forum Stats Members Help
HEIC image fails to load DLL to decode0