PHP Classes
elePHPant
Icontem

File: examples/includes/config.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Oliver Lillie  >  PHP Video Toolkit  >  examples/includes/config.php  >  Download  
File: examples/includes/config.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Video Toolkit
Manipulate and convert videos with ffmpeg program
Author: By
Last change: converted hard tabs to spaces
added set_time_limit(0) option to config object so that exec doesn't cause the transaction to break on systems with max_execution_time set
Date: 2 years ago
Size: 982 bytes
 

Contents

Class file image Download
<?php

   
try
    {
       
$config = new \PHPVideoToolkit\Config(array(
           
'temp_directory' => './tmp',
           
'ffmpeg' => '/opt/local/bin/ffmpeg',
           
'ffprobe' => '/opt/local/bin/ffprobe',
           
'yamdi' => '/opt/local/bin/yamdi',
           
'qtfaststart' => '/opt/local/bin/qt-faststart',
           
'gif_transcoder' => 'php',
           
'convert' => '/opt/local/bin/convert',
           
'gifsicle' => '/opt/local/bin/gifsicle',
           
'php_exec_infinite_timelimit' => true,
        ));
    }
    catch(\
PHPVideoToolkit\Exception $e)
    {
        echo
'<h1>Config set errors</h1>';
        \
PHPVideoToolkit\Trace::vars($e);
        exit;
    }

   
$example_video_path = BASE.'examples/media/BigBuckBunny_320x180.mp4';
   
$example_audio_path = BASE.'examples/media/Ballad_of_the_Sneak.mp3';