protected function mergeOptions($src, $dst, &$options) {
    if (!isset($options['width']) && !isset($options['height'])) {
      $info = $this->getVideoInfo($src);
      $options['width'] = $info['width'];
      $options['height'] = $info['height'];
      if (!$info['audioStreams']) {
        $options['audio'] = false;
      }
    }
    if (!isset($options['targetFormat'])) {
      $ext = strtolower(substr($dst, strrpos($dst, '.') + 1));
      $options['targetFormat'] = $ext;
    }
  }
protected function mergeOptions($src, $dst, &$options) {
    if (!isset($options['width']) && !isset($options['height'])) {
      $info = $this->getVideoInfo($src);
      $options['width'] = $info['width'];
      $options['height'] = $info['height'];
      if (!$info['audioStreams']) {
        $options['audio'] = false;
      }
    }
    if (!isset($options['targetFormat'])) {
      $ext = strtolower(substr($dst, strrpos($dst, '.') + 1));
      $options['targetFormat'] = $ext;
    }
  }
protected function mergeOptions ( $ src , $ dst , & $ options ) { if ( ! isset ( $ options [ 'width' ] ) && ! isset ( $ options [ 'height' ] ) ) { $ info = $ this -> getVideoInfo ( $ src ) ; $ options [ 'width' ] = $ info [ 'width' ] ; $ options [ 'height' ] = $ info [ 'height' ] ; if ( ! $ info [ 'audioStreams' ] ) { $ options [ 'audio' ] = false ; } } if ( ! isset ( $ options [ 'targetFormat' ] ) ) { $ ext = strtolower ( substr ( $ dst , strrpos ( $ dst , '.' ) + 1 ) ) ; $ options [ 'targetFormat' ] = $ ext ; } }
If no width and height are given in the option read the video
file and set width and height from the souce

@param string $src Source video filename
@param string $dst Desitination video filename
@param array $options Convert options
If no width and height are given in the option read the video file and set width and height from the souce