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

Improve detection of mov files (video/quicktime). #56

Merged
merged 1 commit into from Mar 1, 2023

Conversation

Bulkin
Copy link
Contributor

@Bulkin Bulkin commented Feb 19, 2022

Fixes detection of mov files produced by Nikon cameras (and probably some
other atypical muxers).

The first 4 bytes of a mov file specify the size of the 'ftyp' atom. While
typically the "Compatible_Brands[]" array contains just the "qt " brand and
the size is 0x14, muxers are free to add an arbitrary number of brand markers,
changing the size. For example, Nikon cameras add the brand "niko".

See https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap1/qtff1.html#//apple_ref/doc/uid/TP40000939-CH203-39017

Fixes detection of mov files produced by Nikon cameras (and probably some
other atypical muxers).

The first 4 bytes of a mov file specify the size of the 'ftyp' atom. While
typically the "Compatible_Brands[]" array contains just the "qt " brand and
the size is 0x14, muxers are free to add an arbitrary number of brand markers,
changing the size. For example, Nikon cameras add the brand "niko".

See https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap1/qtff1.html#//apple_ref/doc/uid/TP40000939-CH203-39017
@bojand bojand merged commit 67e0e83 into bojand:master Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants