Skip to content
/ mlt Public
forked from 1fer/mlt

PHP Class for MELT library (video processing)

Notifications You must be signed in to change notification settings

ajaxvador/mlt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video processing class

Author: [email protected]

Requirements

  • PHP 5.3+
  • Melt installed on server
  • enabled PHP functions exec, shell_exec
  • PHP extensions: simplexml, libxml, json

Example of use

require __DIR__ . '/vendor/autoload.php';

$videoProcessing = new Andchir\VideoProcessing([
    'melt_path' => '/usr/bin/melt',
    'session_start' => true
]);

$videoProcessing
    ->setProfile('hdv_720_25p')
    ->addOption(['joinClips' => [
        $rootPath . '/uploads/tmp/Cat.mp4',
        $rootPath . '/uploads/tmp/Dog.mp4',
    ]])
    ->setOutputVideoOptions($rootPath . '/uploads/tmp/CatDog.mp4');
    
$videoProcessing->render();

Install Melt on Ubuntu:

sudo apt install melt

About

PHP Class for MELT library (video processing)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%