2017 © Pedro Peláez
 

library webm

Create thumbnail for .webm video

image

kiririn/webm

Create thumbnail for .webm video

  • Saturday, May 30, 2015
  • by Diana
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Install

Debian/Ubuntu as root:, (*1)

apt install ffmpegthumbnailer mediainfo

Usage

use Kiririn\Webm\Webm;

//You can skip dependency checking: new Webm('path/to/video.webm', true);
$webm = new Webm('path/to/video.webm');
$webm->thumbnail(200, 200);

//Second argument - thumb name with or without extension
$webm->save('path/to', 'thumb.jpeg');

Get additional info

//Video
$webm->getWidth();
$webm->getHeight();

//Thumb
$webm->getThumbWidth();
$webm->getThumbHeight();

//Duration
$webm->getDuration();

The Versions

30/05 2015

dev-master

9999999-dev

Create thumbnail for .webm video

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-fileinfo *

 

The Development Requires

by Aiko Kirino

thumbnail webm