AtlasOfLivingAustralia / image-service

Image repository and tiling services
https://images.ala.org.au
0 stars 17 forks source link

m4a audios from inat are classified as video #87

Closed sadeghim closed 4 years ago

sadeghim commented 4 years ago

like this observation: https://www.inaturalist.org/observations/9888116 https://biocache.ala.org.au/occurrences/6f6ba651-1a83-490e-b9d9-784486342de0 And no media is shown.

djtfmartin commented 4 years ago

I think these files are in "3gpp" format, rather than m4a - have a mime type of "video/3gpp"

https://images.ala.org.au/image/9531ea1d-702f-4036-8706-563421228176

which is a video format, but we should be able to display / play it in biocache-hubs

djtfmartin commented 4 years ago

Scratch that, the original file is

https://static.inaturalist.org/sounds/17827.m4a?1518841509

the mime type we store is derived using the library

https://github.com/drewnoakes/metadata-extractor

which gives the "video/3gpp" value.

We could use the mime type in the DwCA if provided (which it is for iNaturalist)

djtfmartin commented 4 years ago

This will be fixed in version 1.0.10, but will also require some database updates to fix some of the existing images.

djtfmartin commented 4 years ago

Example fixed in images-dev

https://images-dev.ala.org.au/image/2bd372cc-f25a-45b8-90b3-9742e159cc7d