
$data = empty($abbreviations) ? array() : explode(' ', $abbreviations)

grab the abbreviations available to ffmpeg $data = empty($protocols) ? array() : explode(' ', str_replace(':', '', $protocols)) grab the file prototcols available to ffmpeg $data = empty($filters) ? array() : explode(' ', $filters) grab the bitstream filters available to ffmpeg \t\t\t \t\t-flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 \ \t\t\t \t\t-me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 \ $tmp_dir = Kohana::config('ffmpeg.tmp_path') $filename = pathinfo($file, PATHINFO_FILENAME) $path = pathinfo($file, PATHINFO_DIRNAME) Throw new Exception("Invalid filepath supplied", 1) Throw new Exception("No filepath supplied", 1) If you would like to see ffmpeg-php pre-installed in PHP provided by Plesk, please vote for this feature on Plesk UserVoice.Public static function video_mp4($file = null) To start using php-ffmpeg add the below to the website code in a PHP page to load the library:ĬONFIG_TEXT: require 'vendor/autoload.php' įfmpeg-php extension is not pre-installed in Plesk. Note: the ffmpeg-php is installed in /var/ Go to Domains > PHP Composer, click Scan to read the composer.json file:Ĭlick Install under Package Dependencies: Go to Domains > PHP Settings and select 5.6.40, click OK Note: The domain is the domain where ffmpeg-php is going to be used

Go to Domains > File Manager and create a file named composer.json with the content below:


Install Composer extension from Plesk extension catalog in Extensions: Unable to install ffmpeg-php for PHP 7.x provided by Plesk: too many arguments to function 'zend_hash_find'įollow the next steps to install ffmpeg-php extension for PHP 5.6 provided by Plesk on Plesk Obsidian CentOS 7 (PHP 5.6 is not included into Plesk on other operating systems):
