当前位置:网站首页>PHP to get information such as audio duration
PHP to get information such as audio duration
2022-07-08 01:38:00 【Xiao ASI】
Make a note of Resources found by Baidu
1、 First , We need to download one first PHP class —getid3
https://codeload.github.com/JamesHeinrich/getID3/zip/master
2、 Unzip into project , And reference
<?php
private function gettimes($url){
include_once root_path('extend/getid3/getid3').'getid3.php';
$getID3 = new \getID3();
$ThisFileInfo = @$getID3->analyze($url);
// Analyze documents ,$url Is the address of the audio file ( File absolute path )
$fileduration= $ThisFileInfo['playtime_seconds'];
return $fileduration;
}
Resource link :https://download.csdn.net/download/weixin_46044420/85860235
边栏推荐
- Understanding of prior probability, posterior probability and Bayesian formula
- 能力贡献 GBASE三大解决方案入选“金融信创生态实验室-金融信创解决方案(第一批)”
- About snake equation (3)
- ANSI / NEMA- MW- 1000-2020 磁铁线标准。. 最新原版
- Blue Bridge Cup embedded (F103) -1 STM32 clock operation and led operation method
- 3. Multi agent reinforcement learning
- Write a pure handwritten QT Hello World
- Running OFDM in gnuradio_ RX error: gr:: Log: info: packet_ headerparser_ b0 - Detected an invalid packet at item ××
- AttributeError: ‘str‘ object has no attribute ‘strftime‘
- ROS problems (topic types do not match, topic datatype/md5sum not match, MSG XXX have changed. rerun cmake)
猜你喜欢
Measure the voltage with analog input (taking Arduino as an example, the range is about 1KV)
4. Strategic Learning
break net
2021-03-14 - play with generics
The foreach map in JS cannot jump out of the loop problem and whether foreach will modify the original array
break net
3. Multi agent reinforcement learning
滑环在直驱电机转子的应用领域
About snake equation (3)
Introduction to grpc for cloud native application development
随机推荐
Js中forEach map无法跳出循环问题以及forEach会不会修改原数组
About snake equation (3)
2022 high voltage electrician examination skills and high voltage electrician reexamination examination
跨模态语义关联对齐检索-图像文本匹配(Image-Text Matching)
Gnuradio3.9.4 create OOT module instances
About how USRP sets the sampling frequency below the minimum sampling frequency reached by the hardware
Call (import) in Jupiter notebook ipynb . Py file
npm 内部拆分模块
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
生态 | 湖仓一体的优选:GBase 8a MPP + XEOS
The combination of relay and led small night light realizes the control of small night light cycle on and off
5、离散控制与连续控制
Gnuradio transmits video and displays it in real time using VLC
Getting started STM32 -- how to learn stm32
5. Discrete control and continuous control
Kaptcha generates verification code on Web page
Apt get error
qt-使用自带的应用框架建立--hello world--使用min GW 32bit
2022 new examination questions for crane driver (limited to bridge crane) and question bank for crane driver (limited to bridge crane) operation examination
不算不知道,花呗分期的真实利率居然这么高