PHPackages                             ffmpeg\_video\_length/ffmpeg\_get\_video\_length - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ffmpeg\_video\_length/ffmpeg\_get\_video\_length

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ffmpeg\_video\_length/ffmpeg\_get\_video\_length
================================================

获取视频长度，获取视频时长。

v1.0.0(6y ago)012MITPHPPHP &gt;=5.5.9

Since Mar 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/1211884772/ffmpeg_video_length)[ Packagist](https://packagist.org/packages/ffmpeg_video_length/ffmpeg_get_video_length)[ Docs](https://github.com/1211884772/ffmpeg_video_length)[ RSS](/packages/ffmpeg-video-length-ffmpeg-get-video-length/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

ffmpeg\_video\_length
=====================

[](#ffmpeg_video_length)

视频长度

前提要安装FFMPEG，windows版本Unix版本

文件地址：支持网络地址[http://和本地绝对地址](http://%E5%92%8C%E6%9C%AC%E5%9C%B0%E7%BB%9D%E5%AF%B9%E5%9C%B0%E5%9D%80)

$ffmpeg\_path 必须绝对地址

$ffmpeg\_path = 'D:\\phpStudy2019\\PHPTutorial\\WWW\\[www.zhizhenfinance.com\\public\\static\\admin\\ffmpeg\\bin\\ffmpeg](http://www.zhizhenfinance.com\public\static\admin\ffmpeg\bin\ffmpeg) -i "%s" 2&gt;&amp;1';

$ffmpegGetVideoLength = new ffmpegGetVideoLength();

$file= '文件地址';

$length\_time = $ffmpegGetVideoLength-&gt;getLength($ffmpeg\_path,$file);

echo $length\_time;

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e42ab697ab5409fdc9f3f1a36cfedb699649937ae3a0f359485ee8e78003984c?d=identicon)[1211884772](/maintainers/1211884772)

---

Top Contributors

[![mumu-architect](https://avatars.githubusercontent.com/u/29419314?v=4)](https://github.com/mumu-architect "mumu-architect (4 commits)")

### Embed Badge

![Health badge](/badges/ffmpeg-video-length-ffmpeg-get-video-length/health.svg)

```
[![Health](https://phpackages.com/badges/ffmpeg-video-length-ffmpeg-get-video-length/health.svg)](https://phpackages.com/packages/ffmpeg-video-length-ffmpeg-get-video-length)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
