2017 © Pedro Peláez
 

library video-thumbnail

Video thumbnails

image

pawlox/video-thumbnail

Video thumbnails

  • Saturday, July 7, 2018
  • by pawlox
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,303 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 2 Open issues
  • 7 Versions
  • 72 % Grown

The README.md

Video Thumbnail

Simple package for generating video thumbnail in Laravel using FFMpeg., (*1)

Support my work

If you want to support my work in other way than contributing the code itself, you can always pass me some small donation :beer: at https://paypal.me/pawlox :), (*2)

Installation

Composer install:, (*3)

composer require pawlox/video-thumbnail

After package installation, add the ServiceProvider to the providers array in config/app.php, (*4)

Pawlox\VideoThumbnail\VideoThumbnailServiceProvider::class

And to the aliases array, (*5)

'VideoThumbnail' => Pawlox\VideoThumbnail\Facade\VideoThumbnail::class

Also you can publish package config file with:, (*6)

php artisan vendor:publish --tag=video-thumbnail

and set ffmpeg and ffprobe paths in .env file:, (*7)

FFMPEG="/usr/bin/ffmpeg"
FFPROBE="/usr/bin/ffprobe"

Versions

Laravel PHP pawlox/video-thumbnail php-ffmpeg/php-ffmpeg
>= ^5.0 and < ^5.8 < 7.4 ^1.* 0.11.0
^5.8 and ^6.* >= 7.4 and <= 8.1 ^2.* 0.13.0
^7.* and ^8.* >= 7.4 and <= 8.1 ^3.* 0.19.0
^9.* >= 8.0 ^4.* 1.*

Usage

VideoThumbnail::createThumbnail(
    $videoUrl, 
    $storageUrl, 
    $fileName, 
    $second, 
    $width = 640, 
    $height = 480
);

$videoUrl - absolute path to video file,
$storageUrl - absolute path where the thumbnail should be save,
$fileName - name of thumbnail file,
$second - from which second of the movie thumbnail should be created,
$width [Optional] - width (in pixels) of the thumbnail (default 640),
$height [Optional] - height (in pixels) of the thumbnail (default 480)., (*8)

Example

VideoThumbnail::createThumbnail(
    public_path('files/movie.mp4'), 
    public_path('files/thumbs/'), 
    'movie.jpg', 
    2, 
    1920, 
    1080
);

The Versions

07/07 2018

dev-master

9999999-dev

Video thumbnails

  Sources   Download

MIT

The Requires

 

by Sukhil S S
by Paweł Marciniak

laravel 5 video thumbnails laravel video thumbnail

29/08 2017

v1.0.0

1.0.0.0

Video thumbnails

  Sources   Download

MIT

The Requires

 

by Sukhil S S
by Paweł Marciniak

laravel 5 video thumbnails laravel video thumbnail

29/08 2017

v1.0.1

1.0.1.0

Video thumbnails

  Sources   Download

MIT

The Requires

 

by Sukhil S S
by Paweł Marciniak

laravel 5 video thumbnails laravel video thumbnail

29/08 2017

v1.0.3

1.0.3.0

Video thumbnails

  Sources   Download

MIT

The Requires

 

by Sukhil S S
by Paweł Marciniak

laravel 5 video thumbnails laravel video thumbnail

17/03 2017

1.02

1.02.0.0

Video thumbnails

  Sources   Download

MIT

The Requires

 

by Sukhil S S
by Paweł Marciniak

laravel 5 video thumbnails laravel video thumbnail

17/03 2017

1.01

1.01.0.0

Video thumbnails

  Sources   Download

MIT

The Requires

 

by Sukhil S S
by Paweł Marciniak

laravel 5 video thumbnails laravel video thumbnail

09/03 2017

1.0

1.0.0.0

Video thumbnails

  Sources   Download

MIT

The Requires

 

by Sukhil S S
by Paweł Marciniak

laravel 5 video thumbnails laravel video thumbnail