Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly identifies avif image file as "video/quicktime" #347

Closed
rjgotten opened this issue Oct 27, 2023 · 2 comments
Closed

Incorrectly identifies avif image file as "video/quicktime" #347

rjgotten opened this issue Oct 27, 2023 · 2 comments

Comments

@rjgotten
Copy link

rjgotten commented Oct 27, 2023

The library incorrectly identifies AVIF image files as AV1 videos with MIME content type "video/quicktime" rather than the correct "image/avif".

Additionally the content type "video/quicktime" is incorrect.
The standardized content type for AV1 video is "video/AV1": https://www.iana.org/assignments/media-types/video/AV1

The definition of that media type is strictly speaking limited to video-streaming via RTP and is not defined for other uses, but it makes more sense than "video/quicktime" which is just an opaque box of 'anything Apple Quicktime can play back.'

It's akin to speccing MP4 videos as "video/-x-msvideo," because Windows Media Player can play it back.

@StefanOltmann
Copy link

StefanOltmann commented Feb 3, 2024

It's not really incorrect.

AVIF is like HEIC a flavor of HEIF, which is a ISO Base Media File Format (BMFF). This originated from QuickTime. So in fact it's a QuickTime file somehow. ;)

The fix is just to use the already implemented HEIC logic for AVIF files.

I just did that for the Java version:
drewnoakes/metadata-extractor#649

@StefanOltmann
Copy link

Resolved by #396 now. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants