Coder Social home page Coder Social logo

Comments (10)

drewnoakes avatar drewnoakes commented on June 1, 2024

Thanks! Can you provide a small sample file that reproduces the problem please?

from metadata-extractor-dotnet.

xianglongcheng avatar xianglongcheng commented on June 1, 2024

from metadata-extractor-dotnet.

drewnoakes avatar drewnoakes commented on June 1, 2024

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.

xianglongcheng avatar xianglongcheng commented on June 1, 2024

ring.m4a.pdf
Remove the pdf extension after download. Please try.

from metadata-extractor-dotnet.

drewnoakes avatar drewnoakes commented on June 1, 2024

@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.

xianglongcheng avatar xianglongcheng commented on June 1, 2024

from metadata-extractor-dotnet.

drewnoakes avatar drewnoakes commented on June 1, 2024

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.

xianglongcheng avatar xianglongcheng commented on June 1, 2024

Sure. Thanks!

from metadata-extractor-dotnet.

rjgotten avatar rjgotten commented on June 1, 2024

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.

jruggiero1955 avatar jruggiero1955 commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.