Use hiec with kdenlive

I’m using the flatpak version of kdenlive 22.12.3 but unable to import heif or heic files.

I see this message when running from the command line and trying to import a heic file.

/////////// creatclipsfromlist (QUrl("file:///home/tony/Pictures/IMG_1026.HEIC")) true "-1"
virtual QStringList Solid::Backends::UPower::UPowerManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown"
virtual QStringList Solid::Backends::UPower::UPowerManager::allDevices()  error:  "org.freedesktop.DBus.Error.ServiceUnknown"
/////////// createClipFromFile "/home/tony/Pictures/IMG_1026.HEIC" "-1"
=== GOT DROPPED MIME:  "image/heif"
/////////// final xml "<producer type=\"5\" in=\"0\" length=\"125\">\n <property name=\"resource\">/home/tony/Pictures/IMG_1026.HEIC</property>\n</producer>\n"
============STARTING LOAD TASK FOR:  "/home/tony/Pictures/IMG_1026.HEIC" 

:::::::::::::::::::
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe1dc0081c0] moov atom not found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fe1dc009280] moov atom not found
/////////// creatclipsfromlist return false
========== READY FOR TASK DISCARD ON:  9
===== REMOVING MASTER PRODUCER; CURRENT COUNT:  0 
:::::::::::::::::::::::::::


flatpak info org.kde.kdenlive

Kdenlive - Video Editor

          ID: org.kde.kdenlive
         Ref: app/org.kde.kdenlive/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 22.12.3
     License: GPL-3.0-only
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 237.3 MB
     Runtime: org.kde.Platform/x86_64/5.15-22.08
         Sdk: org.kde.Sdk/x86_64/5.15-22.08

      Commit: 3e2623771a3440dc10ba0de93546561658271bddf95321257e6031abdba01b5d
      Parent: 7cce6edfddd514fd464b1ec33c6e247a562b278f2848e3822e378413617a8fab
     Subject: Update websockets-11.0.tar.gz to 11.0.1 (e7d7ec5e)
        Date: 2023-04-06 19:36:56 +0000

I downloaded and tested the appimage (kdenlive-22.12.3-x86_64.AppImage) and noticed the same issue.
I’m not sure if this is the reason, but I noticed that the appimage has not got the libqheif.so plugin installed.

Could this be a bug/problem with the appimages and flatpaks?

./kdenlive-22.12.3-x86_64.AppImage --appimage-mount
...
find /tmp/.mount_kdenlisw9STM/ | grep imageformats
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_ani.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_ani.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_eps.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_eps.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_hdr.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_hdr.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_kra.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_kra.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_ora.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_ora.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_pcx.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_pcx.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_pic.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_pic.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_psd.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_psd.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_ras.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_ras.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_rgb.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_rgb.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_tga.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_tga.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_xcf.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/kimg_xcf.so.debug
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqgif.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqicns.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqico.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqjpeg.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqsvg.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqtga.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqtiff.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqwbmp.so
/tmp/.mount_kdenlisw9STM/usr/plugins/imageformats/libqwebp.so