You are here

public static function PHPVideoToolkit::canCodecBeEncoded in Video 7

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

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

Parameters

$codec string The shortcode for the codec to check for.: * @return boolean True if the codec can be encoded by ffmpeg, otherwise false.

2 calls to PHPVideoToolkit::canCodecBeEncoded()
PHPVideoToolkit::setAudioCodec in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Sets the audio format for audio outputs * * @access public *
PHPVideoToolkit::setVideoCodec in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* Forces the video format for video outputs to a specific codec. This should not be confused with setFormat. setVideoFormat does not generally need to * be called unless setting a specific video format for a type of media format. It gets a little…

File

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

Class

PHPVideoToolkit

Code

public static function canCodecBeEncoded($type, $codec) {
  return self::validateCodec($codec, $type, 'encode');
}