You are here

public function PHPVideoToolkit::hasFFmpegPHPSupport in Video 7

Same name and namespace in other branches
  1. 7.2 libraries/phpvideotoolkit/phpvideotoolkit.php5.php \PHPVideoToolkit::hasFFmpegPHPSupport()

* Determines the type of support that exists for the FFmpeg-PHP module. * * @access public *

Return value

mixed. Boolean false if there is no support, String 'module' if the actuall * FFmpeg-PHP module is loaded, or String 'emulated' if the FFmpeg-PHP classes * can be emulated through the adapter classes.

1 call to PHPVideoToolkit::hasFFmpegPHPSupport()
PHPVideoToolkit::getFFmpegInfo in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Returns information about the specified file without having to use ffmpeg-php * as it consults the ffmpeg binary directly. * NOTE: calling this statically for caching to work you must set the temp directory. * * @access public *

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 824

Class

PHPVideoToolkit

Code

public function hasFFmpegPHPSupport() {
  return self::$ffmpeg_found === false ? false : (extension_loaded('ffmpeg') ? 'module' : (is_file(dirname(__FILE__) . DS . 'adapters' . DS . 'ffmpeg-php' . DS . 'ffmpeg_movie.php') && is_file(dirname(__FILE__) . DS . 'adapters' . DS . 'ffmpeg-php' . DS . 'ffmpeg_frame.php') && is_file(dirname(__FILE__) . DS . 'adapters' . DS . 'ffmpeg-php' . DS . 'ffmpeg_animated_gif.php') ? 'emulated' : false));
}