PHP code example of packet / ffmpeglib

1. Go to this page and download the library: Download packet/ffmpeglib 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/ */

    

packet / ffmpeglib example snippets


$imagesPath = APP_PATH . '/assets/images/image.png';
$videoPath = APP_PATH . '/assets/videos/video.flv';

$createImagesCommand = new CreateImagesCommand(
	$videoPath, 
	$imagesPath, 
	'00:30:40', 
	'00:0:03', 
	$videoDurationCommand->getDuration());

Executor::executeCommand($createImagesCommand);