gerbera icon indicating copy to clipboard operation
gerbera copied to clipboard

HEIC and HEIF in Gerbera

Open tonyblue2 opened this issue 4 years ago • 4 comments

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

tonyblue2 avatar Dec 31 '20 09:12 tonyblue2

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

whyman avatar Jan 13 '21 22:01 whyman

You may use the transcoding config described here. https://github.com/gerbera/gerbera/issues/971

St3ll4rM4n avatar Jan 14 '21 17:01 St3ll4rM4n

HEIC images are also not displayed as a thumbnails in the Database tab in UI.

St3ll4rM4n avatar Jan 08 '24 23:01 St3ll4rM4n

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.

KarlStraussberger avatar Jan 10 '24 15:01 KarlStraussberger