Download the PHP package vimqu/php-sdk without Composer
On this page you can find all versions of the php package vimqu/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vimqu/php-sdk
More information about vimqu/php-sdk
Files in vimqu/php-sdk
Package php-sdk
Short Description Cloud Video Transcoding. Create HLS, Mpeg Dash, Thumbnails and AI Generated Subtitle from video files
License MIT
Rated 5.00 based on 1 reviews
Informations about the package php-sdk
VimQu PHP-SDK
With this SDK you can change the container (mp4, mkv, mov, webm), codec (h264, h265, vp8, vp9, prores) and bitrate of video files. You can create Adaptive Bitrate videos. While doing this, you can resize, crop, clip operations on the video. You can create thumbnails from video file. Create subtitle files (WebVTT, SRT) in 94 languages (AI generated). Uploads the output files to the storage service of your choice.
Currently, VimQu is integrated with the following storage services:
- AWS S3
- Google Cloud Storage
- Azure Storage
- FTP
- Any S3 Compatible Service like Vultr Object Storage, DigitalOcean Object Storage, Wasabi, Backblaze ...
Requirements
- PHP 8.1+
- VimQu Account. Create account
- VimQu Token.
- Storage Service (you have to save it in VimQu). You can create it in this page and you can find how to add storage in this page
Installation
composer require vimqu/php-sdk
Quick Start
To create a Task we need a TaskManager instance.
You can add more than one output. If there is no error, the result will be the Vimqu\Vimqu\Dto\TaskDto
instance.
We will send you a request (webhook) when the task is complete. However, you can get the task result at any time.
Task
Create HLS
- Available variants: 240p, 360p, 480p, 720p, 1080p, 1440p, 2160p
- Available filters: clip, crop, subtitle, overlayImage
Create Mpeg DASH
- Available variants: 240p, 360p 480p, 720p, 1080p, 1440p, 2160p
- Available filters: clip, crop, subtitle, overlayImage
Create Video Output
- Available containers: mp4, webm, mov, mkv
- Available video codecs: h264, h265, vp8, vp9, prores
- Available filters: resize, clip, crop, subtitle, overlayImage
Create Thumbnail with Exact Seconds
- Available containers: jpg, png, webp
- Available filters: resize
Create Thumbnail with Number
- Available containers: jpg, png, webp
- Available filters: resize
Create Thumbnail with Interval
- Available containers: jpg, png, webp
- Available filters: resize
Storage
You can fetch all storages. Details
Search Task
This method will get you all your tasks. The result is an array of TaskDto.
You can apply these filters:
Result of the Search (the TaskDto)
Filters Reference
resize
You can use it to rescale the video.
Parameter | Nullable | Type | Default Value |
---|---|---|---|
width | YES | int | null |
height | YES | int | null |
aspectRatio | YES | bool | null |
clip
You can create clips from any time in the video.
Parameter | Nullable | Type | Default Value |
---|---|---|---|
from | YES | int | null |
duration | YES | int | null |
to | YES | bool | null |
overlayImage
You can use it to burn pictures on video.
Parameter | Nullable | Type | Default Value |
---|---|---|---|
url | YES | int | null |
coordinateX | YES | int | null |
coordinateY | YES | int | null |
firstSecond | YES | int | null |
lastSecond | YES | int | null |
crop
You can cut the video at specific points.
Parameter | Nullable | Type | Default Value |
---|---|---|---|
width | NO | int | null |
height | NO | int | null |
coordinate_x | NO | int | null |
coordinate_y | NO | int | null |
subtitle
You can use it to create a transcript. Your vtt and srt files will be in targetPath root directory. You gave this directory in the setStorage method.
Parameter | Nullable | Type | Default Value |
---|---|---|---|
subtitle | NO | bool | false |