-
Notifications
You must be signed in to change notification settings - Fork 163
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
No matching lowercase f4v
type
#562
Comments
@luhuaei do you have any idea how this file was created? What program was used? Linux file utility does not recognize it: ➜ file --mime 352909577-f23b3ba0-5bba-4076-894f-1c522bee1b09.mp4
352909577-f23b3ba0-5bba-4076-894f-1c522bee1b09.mp4: application/octet-stream; charset=binary And |
This video was provided to me as feedback. The information in the video can be viewed using exiftool, which correctly identifies the MIME type of this video. This exiftool output
|
I see... From my tests:
I run detection with https://github.com/digital-preservation/droid and https://github.com/google/magika and they both returned |
This 4-second clip is trimmed because the original video file is quite large, so I processed the video before uploading it to GitHub. Could it be that other libraries also determine the mimetype based on the file extension backend? |
There are too many ftyp codes to look for (about 100 registered + the unregistered ones.) Previously all ftyps where on the same level in the detection tree. Now mp4 is parent to all other ftyps.
Attach the file for which the detection is inaccurate
lower_f4v_mime_magic_video.mp4
Expected MIME type
video/mp4
Returned MIME type
application/octet-stream
Version of the library you are using
v1.4.3
Output of
go version
go version go1.22.4 linux/amd64
Additional context
I tried to solve this problem using the extend interface, as shown in the code below.
The text was updated successfully, but these errors were encountered: