PHPackages                             sscs/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. sscs/ffmpeg\_get\_video\_length

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

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

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

v1.0(8y ago)043MITPHPPHP &gt;=5.5.9

Since Oct 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Marchccc/ffmpeg_get_video_length)[ Packagist](https://packagist.org/packages/sscs/ffmpeg_get_video_length)[ Docs](https://github.com/AaronZjs/ffmpeg_get_video_length)[ RSS](/packages/sscs-ffmpeg-get-video-length/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

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

[](#ffmpeg_get_video_length)

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

依赖：ffmpeg（运行此脚本的机器需要安装软件ffmpeg）

使用方法：

use sscs\\ffmpeg\_get\_video\_length\\ffmpegGetVideoLength;

$ffmpegGetVideoLength = new ffmpegGetVideoLength();

// 如果URL包含空格或特殊符号，可用urlencode进行URL编码后再传入。

$length\_time = $ffmpegGetVideoLength-&gt;getLength('');

echo $length\_time;

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3127d ago

### Community

Maintainers

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

---

Top Contributors

[![Marchccc](https://avatars.githubusercontent.com/u/11076355?v=4)](https://github.com/Marchccc "Marchccc (5 commits)")

### Embed Badge

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

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

###  Alternatives

[junohamburg/kirby-reload-on-save

Kirby Reload On Save

293.4k](/packages/junohamburg-kirby-reload-on-save)

PHPackages © 2026

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