You are here

public function PHPVideoToolkit::setVideoBitRate in Video 7.2

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

Sets the video bitrate

@access public

Parameters

integer $bitrate:

Return value

boolean

File

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

Class

PHPVideoToolkit

Code

public function setVideoBitRate($bitrate) {
  $bitrate = intval($bitrate);
  return $this
    ->addCommand('-b', $bitrate . 'k');
}