当前位置:网站首页>php 获取音频时长等信息
php 获取音频时长等信息
2022-07-07 23:40:00 【小阿巳】
记录一下 百度找到的资源
1、首先,我们需要先下载一份PHP类—getid3
https://codeload.github.com/JamesHeinrich/getID3/zip/master
2、解压放入项目,并引用
<?php
private function gettimes($url){
include_once root_path('extend/getid3/getid3').'getid3.php';
$getID3 = new \getID3();
$ThisFileInfo = @$getID3->analyze($url);
//分析文件,$url为音频文件的地址(文件绝对路径)
$fileduration= $ThisFileInfo['playtime_seconds'];
return $fileduration;
}
资源链接:https://download.csdn.net/download/weixin_46044420/85860235
边栏推荐
- Leetcode notes No.21
- Capstone/cs5210 chip | cs5210 design scheme | cs5210 design data
- 2022 new examination questions for crane driver (limited to bridge crane) and question bank for crane driver (limited to bridge crane) operation examination
- Anaconda3 download address Tsinghua University open source software mirror station
- npm 內部拆分模塊
- Ag9310 same function alternative | cs5261 replaces ag9310type-c to HDMI single switch screen alternative | low BOM replaces ag9310 design
- Four digit nixie tube display multi digit timing
- Kuntai ch7511b scheme design | ch7511b design EDP to LVDS data | pin to pin replaces ch7511b circuit design
- How does Matplotlib and PIL image integrate and save multiple pictures into one picture
- 2021 Shanghai safety officer C certificate examination registration and analysis of Shanghai safety officer C certificate search
猜你喜欢
EDP to LVDS conversion design circuit | EDP to LVDS adapter board circuit | capstone/cs5211 chip circuit schematic reference
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
2022 low voltage electrician examination content and low voltage electrician simulation examination question bank
Taiwan Xinchuang sss1700 latest Chinese specification | sss1700 latest Chinese specification | sss1700datasheet Chinese explanation
Led serial communication
4. Apprentissage stratégique
解决报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Gnuradio transmits video and displays it in real time using VLC
2021 Shanghai safety officer C certificate examination registration and analysis of Shanghai safety officer C certificate search
5. Discrete control and continuous control
随机推荐
5. Discrete control and continuous control
Break algorithm --- map
The communication clock (electronic time-frequency or electronic time-frequency auxiliary device) writes something casually
不算不知道,花呗分期的真实利率居然这么高
2022 safety officer-a certificate free examination questions and safety officer-a certificate mock examination
Euler Lagrange equation
Gnuradio transmits video and displays it in real time using VLC
4. Apprentissage stratégique
Application of state mode in JSF source code
Matlab code on error analysis (MAE, MAPE, RMSE)
Frrouting BGP protocol learning
LeetCode 练习——剑指 Offer 36. 二叉搜索树与双向链表
QT -- package the program -- don't install qt- you can run it directly
项目经理有必要考NPDP吗?我告诉你答案
2021-03-14 - play with generics
break net
Understanding of sidelobe cancellation
2022 tea master (intermediate) examination questions and tea master (intermediate) examination skills
3. Multi agent reinforcement learning
Deep learning website