How to get details like duration, type, etc from uploaded videos and store them in fields? I'm building a site that will handle a lot of media files, both image and video. Currently, I have video and image content types setup along with the ability to bulk-upload them.

I'm wondering if there is a way to scrape details from an uploaded video—such as duration, type, etc and store these in fields. I'm not sure how to approach this.
Presumably we are talking mp4/webm video here? Start with checking out getID3. Then it is pretty simple to do:

$id3 = new getID3;
$file = $id3-&gt;analyze($filename);


Must always have "new getID3".