You are here

public function PHPVideoToolkit::setAudioBitRate in Video 7

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

* Sets the audio bitrate * * @access public *

Parameters

integer $audio_bitrate Valid values are 16, 32, 64: * @return boolean false on error encountered, true otherwise

2 calls to PHPVideoToolkit::setAudioBitRate()
PHPVideoToolkit::extractAudio in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* This is an alias for setFormat, but restricts it to audio only formats. * * @access public *
PHPVideoToolkit::setFormatToFLV in libraries/phpvideotoolkit/phpvideotoolkit.php5.php
* A shortcut for converting video to FLV. * * @access public *

File

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

Class

PHPVideoToolkit

Code

public function setAudioBitRate($bitrate) {

  //			validate input
  if (!in_array(intval($bitrate), array(
    16,
    32,
    64,
    128,
    160,
    256,
    320,
  ))) {

    //return $this->_raiseError('setAudioBitRate_valid_bitrate', array('bitrate'=>$bitrate));

    //<-			exits
  }
  return $this
    ->addCommand('-ab', $bitrate);
}