Comments (6)
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.
Facing the same issue with the MIME type. Does this issue has been resolved?
from getid3.
It isn't fixed.
from getid3.
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.
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.
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)
- Purchasing a commercial license HOT 1
- `fread` length error in XMP HOT 2
- PHP Error as Severity: Notice Message: Undefined index: time_scale Filename: getid3/module.audio-video.quicktime.php Line Number: 335 HOT 1
- How to add Cover Image? HOT 1
- PHP Notice: Undefined index: data
- module.tag.id3v2 crashes PHP 8.2.12 if opcache enabled HOT 10
- fread(): Argument #2 ($length) must be greater than 0 HOT 1
- libxml_disable_entity_loader is deprecated HOT 3
- Garbage extracted from a RIFF tag in an AIFF file HOT 2
- Not work WRITE function in Windows 10/php7.4
- Write Synchronised lyric (SYLT)
- Unable to determine .gpx file HOT 5
- Deprecated: Implicit conversion from float ... to int loses precision HOT 7
- Mpeg duration error due to error in GOP parsing HOT 2
- Tag format "id3v2.3" is not allowed on "" files,
- Warning on PrintHexBytes function when $string is not a string. HOT 3
- Integrating into a Joomla 5 site
- Caught exception: Uninitialized string offset 0 HOT 8
- Reflected XSS Vulnerability in demo.browse.php (all version?) HOT 3
- Support for MXF HOT 1
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 getid3.