1

I have searched it from here, here, here but none of them included the avif signature.

I want to determine whether a file is avif or not from bitstream. But document is too complex or cannot be accessed freely. How can I achieve this?

It will be better if answer includes the reason why it can be applied without false positive or false negative.

jeiea
  • 1,965
  • 14
  • 24

1 Answers1

1

The file signature for avif file is ftypavif.

You can see a list of sample avif files here: https://github.com/link-u/avif-sample-images

To check file signatures yourself, download/find a file you want to check, then you can check via any hex viewer.

In Powershell on Windows, you can run this:

format-hex c:\yourfile.someextension

format-hex in Powershell

Sha
  • 2,185
  • 1
  • 36
  • 61
  • I want a method to determine whether a file is an avif or not in the end. I have an avif not having `ftypavif`. I need more solid way and a ground for that. – jeiea Jul 10 '21 at 01:40
  • What signature does your file have when you run it through a hex viewer? – Sha Jul 10 '21 at 07:57
  • If I provide it, can you suggest a solution not having false negative? I can find no meaning to this. – jeiea Jul 10 '21 at 11:15
  • Feel free to share the file – Sha Jul 10 '21 at 11:19