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

m4a from android phone recognizes as 'video/mp4', but should 'audio/x-m4a' #343

Closed
matvey-b opened this issue Apr 2, 2020 · 3 comments
Closed

Comments

@matvey-b
Copy link

matvey-b commented Apr 2, 2020

Sample m4a file

Unix file util output:

matvey-b@laptop-matvey:~/Загрузки$ file sample.m4a 
sample.m4a: ISO Media, MP4 v2 [ISO 14496-14]

p.s. thanks for help 🙂

@bencmbrook
Copy link
Contributor

I know MPEG-4s are tricky to distinguish. Should look into what is resolving here for the above sample file

const brandMajor = uint8ArrayUtf8ByteString(buffer, 8, 12).replace('\0', ' ').trim();

@matvey-b
Copy link
Author

matvey-b commented Apr 5, 2020

I think I misunderstood the problem. In fact, according to this article, this is still an MP4 container 😞 And m4a is a special case of mp4. This all means that your library is working properly.

@bencmbrook
Copy link
Contributor

That's right - file-type is not wrong to say video/mp4, but sometimes it can be more specific, based on the File Type Box (https://en.wikipedia.org/wiki/ISO_base_media_file_format). I checked this particular file and the ftyp is set to mp42, so we can't be more specific for this file. Closing this issue as it's more a matter of the file itself.

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

No branches or pull requests

3 participants