PHPackages                             tbetool/php-video-screenshot - 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. [Image &amp; Media](/categories/media)
4. /
5. tbetool/php-video-screenshot

ActiveLibrary[Image &amp; Media](/categories/media)

tbetool/php-video-screenshot
============================

Generate/Take screenshot of the video file in PHP using FFMPEG

1.1.1(7y ago)02.1k↑76.5%2PHPPHP &gt;=5.5

Since Oct 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/TBETool/php-video-screenshot)[ Packagist](https://packagist.org/packages/tbetool/php-video-screenshot)[ Docs](http://thebornengineer.com)[ RSS](/packages/tbetool-php-video-screenshot/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (4)Used By (0)

php-video-screenshot
====================

[](#php-video-screenshot)

Generate screenshot from the video file using PHP

---

### Requirement

[](#requirement)

- FFMPEG

### Using the Library

[](#using-the-library)

#### Installation

[](#installation)

Intall library in PHP project using composer

```
composer require tbetool/php-video-screenshot

```

#### Using Library

[](#using-library)

```
$obj = new GenerateVideoScreenshots(FFMPEG_PATH);
$obj->setOutputPath('output_location');

```

#### Generating screenshot/thumbnail

[](#generating-screenshotthumbnail)

Screenshot/Thumbnail can be generate by passing absolute path of the video file in following function call.

```
$thumbnail = $obj->generateScreenshot('video_file_path');

```

If you want to save screenshot to a different directory, you can pass the path of the directory as the second parameter.

```
$thumbnail = $obj->generateScreenshot('video_file_path', 'output_path');

```

---

#### NOTE

[](#note)

- If output path is not set using **setOutputPath()** or during **generateScreenshot()**, it will use the path to the video file to save the screenshot.

---

### Exception Handling

[](#exception-handling)

*Ex:*

```
try {
    $thumbnail = $obj->generateScreenshot('video_file_path');
} catch (Exception $exception) {
    echo $exception->getMessage();
}

```

---

### Bug Reporting

[](#bug-reporting)

If you found any bug, create an [issue](https://github.com/TBETool/php-video-screenshot/issues/new).

---

### Support and Contribution

[](#support-and-contribution)

Something is missing?

- `Fork` the repositroy
- Make your contribution
- make a `pull request`

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

Every ~10 days

Total

3

Last Release

2790d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6560085?v=4)[Anuj Sharma](/maintainers/anuj9196)[@anuj9196](https://github.com/anuj9196)

---

Top Contributors

[![anuj9196](https://avatars.githubusercontent.com/u/6560085?v=4)](https://github.com/anuj9196 "anuj9196 (7 commits)")[![donwilson](https://avatars.githubusercontent.com/u/422444?v=4)](https://github.com/donwilson "donwilson (1 commits)")

---

Tags

ffmpegAnuj SharmaTBEAnuj TBEphp ffmpegffmpeg video screenshotffmpeg php video screenshotvideo screenshotvideo thumbnailphp video thumbnailffmpeg video thumbnailgenerate video thumbnail in phpgenerate video thumbnail using ffmpeg in php

### Embed Badge

![Health badge](/badges/tbetool-php-video-screenshot/health.svg)

```
[![Health](https://phpackages.com/badges/tbetool-php-video-screenshot/health.svg)](https://phpackages.com/packages/tbetool-php-video-screenshot)
```

###  Alternatives

[php-ffmpeg/php-ffmpeg

FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg

5.0k24.0M193](/packages/php-ffmpeg-php-ffmpeg)[pbmedia/laravel-ffmpeg

FFMpeg for Laravel

1.8k5.3M31](/packages/pbmedia-laravel-ffmpeg)[codescale/ffmpeg-php

PHP wrapper for FFmpeg application

496275.8k1](/packages/codescale-ffmpeg-php)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495240.6k1](/packages/char0n-ffmpeg-php)[buggedcom/phpvideotoolkit

PHPVideoToolkit is a set of classes aimed to provide a modular, object oriented and accessible interface for interacting with videos and audio through the FFmpeg program.

26385.2k1](/packages/buggedcom-phpvideotoolkit)[pulse00/ffmpeg-bundle

Symfony bundle to provide PHP-FFmpeg as a Symfony service (https://github.com/alchemy-fr/PHP-FFmpeg)

59457.1k1](/packages/pulse00-ffmpeg-bundle)

PHPackages © 2026

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