support ftypmp42 format - #11
Conversation
|
Hi! Thank you for the PR! I reviewed it and I don't notice any issue and it works! I'll try to find more mp4 to check. With MusicBrainz, I set some metadata like the title or the album name and it works as well. To be sure, the problem is the parsing of the |
|
Yes, there are different specs for ftyp. This command was useful for debugging and understanding how type box parsing works. https://www.file-recovery.com/m4a-signature-format.htm |
|
Obviously implementations use magic byte patterns and apply different specifications. https://github.com/discord/lilliput/blob/b13db14b20fd82e580836108c73235686b6ab820/lilliput.go#L24 |
|
Let's resolve the merge conflict and then I merge your PR! |
Hi,
I found an issue with audio recordings created by Android devices.
iOS is fine.
A sample file has been added to test.
readMetadata.duration is null.
It appears that the meta box size differs.
Files with ftypmp42 header have 4 bytes meta box size.
Files with ftypM4A header have 8 bytes meta box size.
At the moment only duration works. Other meta data are null for ftypmp42 files e.g. sampleRate.
https://xhelmboyx.tripod.com/formats/mp4-layout.txt