当前位置:网站首页>PHP uses getid3 to obtain the duration of MP3, MP4, WAV and other media files

PHP uses getid3 to obtain the duration of MP3, MP4, WAV and other media files

2022-06-25 03:35:00 Chafferer WANG

getid3 Download address

https://github.com/JamesHeinrich/getID3
It only needs getid3 Folder

How to write it

//  The path is modified according to your actual situation 
include_once(Yii::$app->basePath.'/getid3.php');

$getID3 = new \getID3();
$mp4info= $getID3->analyze($file['tmp_name']);

//  except analyze There are other ways , Try it yourself 
原网站

版权声明
本文为[Chafferer WANG]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206242044114128.html