Support for AVC and HEIF Files encoding H.264 IDR frames
Would like to know if it is possible to use this library to encode H.264 / AVC compressed frames in HEIF format. H.264 / AVC is the most widely available decoder (after JPEG) and HEIF using H.264 IDR frames would almost play everywhere (HEIC does not play on chrome and AVIF/AVIF does not have much hardware encoding support). We don't see libHEIF have support for encoding in H.264 HEIF format. Can you comment if this is on the roadmap?
Have you tried HEIF using H.264 (i.e. AVIC) files in the browser?
I don't think this would be that hard to do, just not sure its really going to gain much.
I do not know of a trusted way to write HEIF using H.264 files - this would be a trusted tool.
iPhones only record HEIF with HEVC with their native camera app - maybe they provide flexibility to 3rd party apps to write HEIF using H.264 files.
If you have such AVIC file, can you share it? I want to know if Chrome can open it
https://github.com/MPEGGroup/FileFormatConformance/blob/main/data/file_features/published/heif/multilayer004.heic is an example from MPEG.
I would be surprised if the enhancement layer worked though.
Chrome v135 (on Linux) only shows AVIF (images and sequences). HEIC images / AVC sequences do not work.
AVC encoding in libheif will probably come soon.
I saw some macros indicating support for Open264 encoder but could not find all the code, suggesting that AVC encoding support is not done yet.
I'd also suggest x264 since we have x265 already and x264 is more widely used. Also suggest mux mode where once can feed H.264/HEVC IDR NAL units and the library packages them without encoding
@adeel-verkada Are you in a position to do some of that work (or to fund someone doing it)?