PHP code example of icy8 / video2gif

1. Go to this page and download the library: Download icy8/video2gif library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

icy8 / video2gif example snippets



    // composer 入口文件自行更改
tickers([
    'ffmpeg.binaries'  => 'D:\ffmpeg\bin\ffmpeg.exe',
    'ffprobe.binaries' => 'D:\ffmpeg\bin\ffprobe.exe',
]);
if ($handle->generate('template.mp4', 'template.ass', '1.gif')) {
    echo "finished";
} else {
    var_dump($handle->getError());
}