how to extract the video duration in upload with getid3

The place for "I can't figure out how to..." questions.
Post Reply
gabrielxjose
User
Posts: 1
Joined: Sun Jun 21, 2015 9:26 pm
Are you a spambot?: no

how to extract the video duration in upload with getid3

Post by gabrielxjose » Sun Jun 21, 2015 10:01 pm

how to extract the video duration in upload with extension geid3 in php?


someone could help me?

James Heinrich
getID3() v1 developer
Posts: 1427
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Re: how to extract the video duration in upload with getid3

Post by James Heinrich » Sun Jun 21, 2015 11:06 pm

https://github.com/JamesHeinrich/getID3 ... .basic.php

Code: Select all

$getID3 = new getID3;
$ThisFileInfo = $getID3->analyze($filename);
echo $ThisFileInfo['playtime'];

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest