wenprise/video-thumbnail

Generate Video thumbnails in WordPress

1.0 2020-06-19 10:11 UTC

This package is auto-updated.

Last update: 2024-04-21 20:42:18 UTC


README

Simple package for generating video thumbnail in WordPress 5 using FFMpeg.

Installation

Composer install:

composer require wenprise/video-thumbnail
$video = new Wenprise\VideoThumbnail\VideoThumbnail('/usr/bin/ffmpeg', '/usr/bin/ffprobe');

$thumbnail = $video->createThumbnail(get_theme_file_path('demo.mp4'), get_theme_file_path(), 'thumbnail.png', 1, 150, 100);