Repository navigation
Sniff audio-only ISO-BMFF files as other instead of video - #20
Merged
Merged
Conversation
_kind_from_magic read any ftyp box as a video unless the major brand said HEIF or AVIF. Audio files such as .m4a carry the M4A brand, so they were registered as videos and then failed with "no video frames could be read". The major brands the MP4 Registration Authority lists for audio (the iTunes audio family and the CMAF, OMAF, IFE and IAMF audio media profiles) now sniff as other. GLEAPP has no audio kind. Fragmented MP4 brands such as iso5 and dash are untouched and the new test pins them as video. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sniffs an ISO base media file whose major brand is an audio brand as
otherinstead ofvideo. An.m4awas being registered as a video and then failing with "no video frames could be read".gleapp/ingest.py: the major brands the MP4 Registration Authority lists for audio (M4A,M4B,M4Pand the CMAF, OMAF, IFE and IAMF audio media profiles) returnother. GLEAPP has no audio kind.tests/test_ingest_sniff.py: synthetic 16-byte headers only. The audio brands assertother;isom,mp42,mp41,iso5,dash,M4Vandqtstill assertvideo; the HEIF and AVIF brands still assertimage. Every audio case failed against the unmodified function.Fragmented MP4 handling is unchanged; an ExoPlayer chunk whose own brand is an audio brand follows the brand. A brand such as
mp42or3gp4says nothing about audio versus video, so an audio-only file carrying one still sniffs as video.🤖 Generated with Claude Code