Comments (10)
Thanks! Can you provide a small sample file that reproduces the problem please?
from metadata-extractor-dotnet.
from metadata-extractor-dotnet.
Thanks but unfortunately it seems files attached to emails are not added to the issue. You'll need to attach it via the web UI.
from metadata-extractor-dotnet.
ring.m4a.pdf
Remove the pdf extension after download. Please try.
from metadata-extractor-dotnet.
@xianglongcheng here's the output I get for your file:
FILE: Issue 337 (dotnet).m4a
TYPE: MP4
[QuickTime File Type - 0x0001] Major Brand = M4A
[QuickTime File Type - 0x0002] Minor Version = 512
[QuickTime File Type - 0x0003] Compatible Brands = M4A, isom, iso2
[QuickTime Movie Header - 0x0001] Version = 0
[QuickTime Movie Header - 0x0002] Flags = 0 0 0
[QuickTime Movie Header - 0x0003] Created = Fri Jan 01 00:00:00 1904
[QuickTime Movie Header - 0x0004] Modified = Fri Jan 01 00:00:00 1904
[QuickTime Movie Header - 0x0005] TrackId = 1000
[QuickTime Movie Header - 0x0006] Duration = 00:00:11.2880000
[QuickTime Movie Header - 0x0007] Preferred Rate = 1
[QuickTime Movie Header - 0x0008] Preferred Volume = 1
[QuickTime Movie Header - 0x0009] Matrix = [36 values]
[QuickTime Movie Header - 0x000a] Preview Time = 0
[QuickTime Movie Header - 0x000b] Preview Duration = 0
[QuickTime Movie Header - 0x000c] Poster Time = 0
[QuickTime Movie Header - 0x000d] Selection Time = 0
[QuickTime Movie Header - 0x000e] Selection Duration = 0
[QuickTime Movie Header - 0x000f] Current Time = 0
[QuickTime Movie Header - 0x0010] Next Track Id = 2
[QuickTime Track Header - 0x0001] Version = 0
[QuickTime Track Header - 0x0002] Flags = 0 0 3
[QuickTime Track Header - 0x0003] Created = Fri Jan 01 00:00:00 1904
[QuickTime Track Header - 0x0004] Modified = Fri Jan 01 00:00:00 1904
[QuickTime Track Header - 0x0005] TrackId = 1
[QuickTime Track Header - 0x0006] Duration = 11288
[QuickTime Track Header - 0x0007] Layer = 0
[QuickTime Track Header - 0x0008] Alternate Group = 1
[QuickTime Track Header - 0x0009] Volume = 1
[QuickTime Track Header - 0x000c] Matrix = 1 0 0 0 1 0 0 0 1
[QuickTime Track Header - 0x000a] Width = 0
[QuickTime Track Header - 0x000b] Height = 0
[File Type - 0x0001] Detected File Type Name = MP4
[File Type - 0x0002] Detected File Type Long Name = MPEG-4 Part 14
[File Type - 0x0003] Detected MIME Type = video/mp4
[File Type - 0x0004] Expected File Name Extension = mp4
[File - 0x0001] File Name = Issue 337 (dotnet).m4a
[File - 0x0002] File Size = 496318 bytes
[File - 0x0003] File Modified Date = <omitted for regression testing as checkout dependent>
- QuickTime File Type
- QuickTime Movie Header
- QuickTime Track Header
- File Type
- File
Is the issue you're describing with this field?
[File Type - 0x0004] Expected File Name Extension = mp4
The file here is actually an MP4 file. The M4A extension exists to help identify audio-only MP4 files.
How would you suggest we identify the expected file type extension in this case? That directory is currently only populated using information from the header of the file (magic bytes at the start).
from metadata-extractor-dotnet.
from metadata-extractor-dotnet.
The library populates the file type directory based only on the header. Later, the file is identified as M4A once the actual M data is parsed, but we don't go back and modify the other directory.
Today, you could use the tag you identified to understand when you have an M4A and update accordingly.
Longer term this would be a candidate for another issue we have that tracks consolidating data across multiple tags (which I can't find easily now in my phone).
from metadata-extractor-dotnet.
Sure. Thanks!
from metadata-extractor-dotnet.
FWIW; the MIME content type here is wrong either way. It lists video/mp4
but MP4 audio-only files specifically should have audio/mp4
as their content type.
https://www.iana.org/assignments/media-types/media-types.xhtml#audio
https://www.iana.org/assignments/media-types/audio/mp4
from metadata-extractor-dotnet.
I believe that the [QuickTime Movie Header - 0x0005] TrackId is mislabeled. According to exiftools, that value corresponds to the Media Time Scale.
The [QuickTime Track Header - 0x0005] TrackId value is correct
from metadata-extractor-dotnet.
Related Issues (20)
- Reading UTF-8 from iTXt PNGChunk HOT 1
- Drone Flight Rotational and Velocity Metadata Inclusion HOT 1
- Issue in extracting metadata HOT 2
- Reading iPhone MOV throws File format could not be determined HOT 3
- Reading XMP data from MP3 files? HOT 6
- Does it works with unity game engine? HOT 7
- Incorrectly identifies avif image file as "video/quicktime" HOT 2
- FileTypeDetector.DetectFileType as MP3 for a textfile
- Rounding error in Shutter Speed value? HOT 1
- Support detection of Placeholder files HOT 5
- Encoding Error extracting XMP data from PNG file HOT 12
- cannot find package in nuget HOT 3
- Bump net4.5 -> net462 HOT 2
- AOT analyser warnings in the Tiff reader code HOT 11
- Search regression data for "End of data reached." and improve buffer length detection HOT 1
- Support C2PA metadata
- Problems when using package with the .NET Native Toolchain HOT 3
- PNG metadata ? HOT 2
- Q. about XMP/RDF parsing / error handling in MetadataExtractor/XmpCore HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metadata-extractor-dotnet.