Download the PHP package lakshmaji/thumbnail without Composer
On this page you can find all versions of the php package lakshmaji/thumbnail. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lakshmaji/thumbnail
More information about lakshmaji/thumbnail
Files in lakshmaji/thumbnail
Informations about the package thumbnail
Thumbnail
INDEX
Index | Description |
---|---|
What it is | - Introduction |
Installing FFMpeg | - Installing dependency software |
Installation | - Installing Thumbnail package, Lararavel Integration |
Docs | - Methods and Description |
Generating Thumbnail | - Generating thumbnail image with this package |
Miscellaneous | - Miscellaneous content regarding method calls |
License | - License Information |
What it is
- Generates Thumbnail (image) for a given video
- This uses FFMpeg.
- Converts video to WebM format.
Version
1.4.5
Compatibility
Laravel version | Thumbnail version |
---|---|
5.6 | 1.4.5 |
5.5 | 1.4.5 |
5.4 | 1.4.5 |
5.2 | 1.4.5 or 1.4.2 or 1.3.0 |
5.1 | 1.4.5 or 1.4.2 or 1.3.0 |
5.0 | 1.4.5 or 1.4.2 or 1.3.0 |
Note: For 1.4.3 and other earlier version documentation refer here
Installing dependency software
This package relays on FFMpeg, A complete, cross-platform solution to record, convert and stream audio and video i.e, Multimedia .
Installing FFMpeg on 16.04 (Xenial Xerus) LTS
- Run following command to install FFMpeg
Installing FFMpeg on Ubuntu 14.04 LTS
-
Add the mc3man ppa
-
Run following command to Update the package list.
- Now FFmpeg is available to be installed with apt , Run this command
Installing FFMpeg on CentOS
-
Enable EPEL repository
-
for centos 6
-
for centos 5
- for centos 7
-
-
Check whether EPEL respository is eabled by the following command
- Import the official GPG key of Nux Dextop repository:
Nux Dextop is a third-party RPM repository which contains many popular desktop and multimedia related packages (e.g., Ardour, Shutter, etc) for CentOS, RHEL and ScientificLinux. Currently, Nux Dextop repository is available for CentOS/RHEL 6 and 7.
-
Install Nux Dextop with yum command as follows.
-
centos 6
- centos 7
-
-
Now verify that Nux Dextop repository is successfully installed:
- Run following command to install FFMpeg
Installing FFMpeg on Windows
Refer to the following links
Installation
-
This package is available on packagist
-
Add the Service Provider to providers array
-
Add the Facade to aliases array
- Try updating the application with composer (dependencies but not mandatory :wink: )
Configurations
-
Publish the configuration file , this will publish thumbnail.php file to your application config directory.
- Configure the required FFMpeg configurations.
- FFMpeg will autodetect ffmpeg and ffprobe binaries. If you want to give binary paths explicitly, you can configure them in .env file.
- You can specify the output image dimensions in .env file. (dimensions array parameters)
- Add watermark or playback button url to watermark arry aviable in thumbnail.php
- Or you can configure them from laravel .env file, the sample watermark resource configurations in .env file
This ensures that all the generated thumbnails with watermarks are having fixed dimensions
Generating Thumbnail
The following example illustrates the usage of Thumbnail package
METHOD
PARAMETER | DESCRIPTION | FIELD |
---|---|---|
VIDEO_SOURCE_DIRECTORY | Video resource source path i.e, the name of video along with location where video is present | mandatory |
THUMBNAIL_STORAGE_DIRECTORY | The destination path to save the generated thumbnail image | mandatory |
THUMBNAIL_NAME | The name of Image for output | mandatory |
TIME_TO_TAKE_SCREENSHOT | Time to take screenshot of the video | optional |
thumbnail image | optional |
Note : Some of the method parameters are deprecated from version 1.4.4. For earlier versions of this package (<=1.4.3) refer here. The watermark and output image (thumbnail image) dimensions can be configured from app/config.php file.
MISCELLANEOUS
-
To generate the thumbnail image ( screen shot of video) with playback button
-
Your controller class
- Your config file
-
-
To generate the thumbnail image ( screen shot of video)
- To convert video to WebM format
LICENSE