gerbera
gerbera copied to clipboard
HEIC and HEIF in Gerbera
Hello,
all iPhones have been taking photos and videos in HEIC or HEIF format for some time.
However, files in the .HEIC or .HEIF format are currently not displayed in gerbera.
Does something still have to be configured here?
Please excuse my bad English. I am not a native speaker.
https://de.wikipedia.org/wiki/High_Efficiency_Image_File_Format https://nokiatech.github.io/heif/ https://mpeg.chiariglione.org/standards/mpeg-h/image-file-format
Thank you!
Tony
Hey,
I added a test image to Gerbera and it imported it as an ImageItem as expected.
I suppose that no client will have support for this yet, so you will likely need to transcode it to something they do understand
You may use the transcoding config described here. https://github.com/gerbera/gerbera/issues/971
HEIC images are also not displayed as a thumbnails in the Database tab in UI.
HEIF and HEIC are supported by Exiv2 https://exiv2.org/manpage.html#file_types
So there are 2 preconditions for gerbera supporting it: Gerbera has to be built with EXIV2 (which we normally do) and EXIV2 has to be build with enable_bmff=1
(check with exiv2 --version --verbose --grep bmff
). I'm not sure whether ffmpegthumbnailer supports creating thumbs for HEIF if they are not in the picture.
The rest is up to your rendering device.