How to get details like duration, type, etc from uploaded videos and store them in fields?
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".