Git Product home page Git Product logo

Comments (6)

JamesHeinrich avatar JamesHeinrich commented on August 23, 2024

The MP4 (or, more properly, "ISO base media file format") is based on the QuickTime structure. About 90% of QuickTime, MP4, 3GPP, etc all overlap and have about 90% in common.
https://en.wikipedia.org/wiki/ISO_base_media_file_format

If you can propose an accurate test to differentiate MP4 from Quicktime from other cousins in the module.quicktime then I'll consider doing so.

from getid3.

bhushanr avatar bhushanr commented on August 23, 2024

Facing the same issue with the MIME type. Does this issue has been resolved?

from getid3.

 avatar commented on August 23, 2024

It isn't fixed.

from getid3.

JamesHeinrich avatar JamesHeinrich commented on August 23, 2024

Again, if you can propose a test (other than based on filename) to differentiate a Quicktime container from a MP4 container I'll be happy to return video/mp4 where appropriate.

Meanwhile you can do something like
$info['mime_type'] = ((($info['mime_type'] == 'video/quicktime') && preg_match('#\\.(mp4|m4v)$#i', $info['filename']) ? 'video/mp4' : $info['mime_type']);
where $info is the array returned from getid3->analyze and that should modify the MIME type based on filename.

from getid3.

 avatar commented on August 23, 2024

As you said.
The specifications for quicktime and mp4 are very similar and each of them has around 150 sites?
To search for the differences seems to be a little bit time-consuming.
So I can't propose an accurate test at the moment.

from getid3.

JamesHeinrich avatar JamesHeinrich commented on August 23, 2024

I made a change in 9d46705 that should set video/mp4 in some cases. If you have a file that should be showing as video/mp4 but still shows as video/quicktime with this change please let me know.

from getid3.

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.