0

I want to get a HEIF image from my Sony camera published to AVIF for the Web and it would appear ffmpeg can't recognise the "HEIF Image HEVC Main 10 Profile" file format and show the error:

ffmpeg -hide_banner -loglevel error -i milan2023.HIF -c:v libaom-av1 -still-picture 1 milan2023.avif
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x12ce04ca0] moov atom not found
milan2023.HIF: Invalid data found when processing input

Here is a sample image.

5
  • 3
    I’m voting to close this question because it does not appear to be about Apple hardware or software within the scope defined in the help centre.
    – Tetsujin
    Apr 5 at 13:02
  • 1
    I think this could be on topic as Apple is pretty much the main adopter of the HEIF format and is used heavily on iOS devices.
    – Allan
    Apr 5 at 13:53
  • 1
    Have you tried the native Sony Imaging Edge Application?
    – Allan
    Apr 25 at 16:09
  • A bit meta, but would this question get a better answer if example pictures are given? May 1 at 14:40
  • Like the linked sample image?
    – hendry
    May 3 at 11:10

1 Answer 1

1

There are two utilities that can convert this file: GraphicsMagick and ImageMagick. Both are available via MacPorts and Homebrew. I prefer GraphicsMagick (and switched from IM) because it is faster and smaller than ImageMagick.

The GM command is quite simple:

gm convert input.HEIV output.AVIF

The IM command is identical except for thegm prepending the full command. It’s simply convert….

GM uses a single binary gm where as IM has several binaries: convert, identify, morgrify, etc.

3
  • ❯ gm convert milan2023.HIF milan2023.avif gm convert: No decode delegate for this image format (milan2023.HIF). ~/Desktop/milan-marathon ❯ mv milan2023.HIF milan2023.HEIV ~/Desktop/milan-marathon ❯ gm convert milan2023.HEIV milan2023.avif gm convert: No decode delegate for this image format (milan2023.HEIV).
    – hendry
    Apr 6 at 1:45
  • Those are supported formats and I’ve converted HEIV formats previously. Try converting to png to see if that works.
    – Allan
    Apr 6 at 2:39
  • ❯ gm convert milan2023.HIF milan.png gm convert: No decode delegate for this image format (milan2023.HIF).
    – hendry
    Apr 6 at 4:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .