public function getEncoders() {
    $encoders = $this->Cache->read('encoders');
    if ($encoders !== null) {
      return $encoders;
    }

    $args = array('-codecs');
    if (!$this->isVersionIsGreaterOrEqual($this->getVersion(), array(0, 8))) {
      $args = array('-formats');
    }
    $lines = array();
    $errCode = $this->Process->run($this->config['ffmpeg.bin'], $args, $lines);
    if (!count($lines) || $errCode != 0) {
      return array();
    }

    $encoders = $this->parseEncoder($lines);
    $this->Cache->write('encoders', $encoders);
    return $encoders;
  }
public function getEncoders() {
    $encoders = $this->Cache->read('encoders');
    if ($encoders !== null) {
      return $encoders;
    }

    $args = array('-codecs');
    if (!$this->isVersionIsGreaterOrEqual($this->getVersion(), array(0, 8))) {
      $args = array('-formats');
    }
    $lines = array();
    $errCode = $this->Process->run($this->config['ffmpeg.bin'], $args, $lines);
    if (!count($lines) || $errCode != 0) {
      return array();
    }

    $encoders = $this->parseEncoder($lines);
    $this->Cache->write('encoders', $encoders);
    return $encoders;
  }
public function getEncoders ( ) { $ encoders = $ this -> Cache -> read ( 'encoders' ) ; if ( $ encoders !== null ) { return $ encoders ; } $ args = array ( '-codecs' ) ; if ( ! $ this -> isVersionIsGreaterOrEqual ( $ this -> getVersion ( ) , array ( 0 , 8 ) ) ) { $ args = array ( '-formats' ) ; } $ lines = array ( ) ; $ errCode = $ this -> Process -> run ( $ this -> config [ 'ffmpeg.bin' ] , $ args , $ lines ) ; if ( ! count ( $ lines ) || $ errCode != 0 ) { return array ( ) ; } $ encoders = $ this -> parseEncoder ( $ lines ) ; $ this -> Cache -> write ( 'encoders' , $ encoders ) ; return $ encoders ; }
Get supported encoder names

@return array Sorted list of supported encoders
Get supported encoder names