You are here

public function PHPVideoToolkit::canCodecBeEncoded in Video 7.2

Same name and namespace in other branches
  1. 7 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 value

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
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 confusing...

File

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

Class

PHPVideoToolkit

Code

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