You are here

public function PHPVideoToolkit::canCodecBeDecoded in Video 7.2

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

Checks to see if a given codec can be decoded by the current ffmpeg binary. @access public

Parameters

$codec string The shortcode for the codec to check for.:

Return value

boolean True if the codec can be decoded by ffmpeg, otherwise FALSE.

File

libraries/phpvideotoolkit/phpvideotoolkit.php5.php, line 2613
Libary to access FFmpeg

Class

PHPVideoToolkit

Code

public function canCodecBeDecoded($type, $codec) {
  return $this
    ->validateCodec($codec, $type, 'decode');
}