You are here

public function PHPVideoToolkit::setPixelFormat in Video 7.2

File

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

Class

PHPVideoToolkit

Code

public function setPixelFormat($format) {
  $formats = $this
    ->getAvailablePixelFormats();
  if (in_array($format, $formats)) {
    return $this
      ->addCommand('-pix_fmt', $format);
  }
  return FALSE;
}