问题
I want to know if PHP has a function to read metadata from an mp4 video-audio file. I've found some external classes that do that, but first of use them I would want to know if are necessary or PHP already have some method for do that.
Classes that I've found are php-mp4info and getID3(), which of them is better?
回答1:
Best tool I have used is: https://code.google.com/p/php-reader/ have a look...also supports other forms of media.
Edit: PHP-Reader seems to be no longer maintained (project has not been updated since 2012...). You should use getID3()
now.
回答2:
I've used http://getid3.sourceforge.net/ before for something similar, worked pretty well as far as I remember.
来源:https://stackoverflow.com/questions/13173471/does-php-have-an-integrated-function-to-read-metadata-from-an-mp4-file