protected function getVideoCodecSpecificParams(KDLFlavor $design, KDLFlavor $target)
 {
     /*
      * There is some quality degradation on old-style VP8 cmd line.
      * 'qmax=8' fixes it. 
      */
     $vidCodecSpecStr = parent::getVideoCodecSpecificParams($design, $target);
     if ($target->_video->_id == KDLVideoTarget::VP8 && $target->_video->_bitRate < 500) {
         $vidCodecSpecStr .= " -qmax 8";
     }
     return $vidCodecSpecStr;
 }
Example #2
0
 public function FFMpeg_aux($extra = null)
 {
     /**/
     $transcoder = new KDLOperatorFfmpeg2_2(KDLTranscoders::FFMPEG_AUX);
     return $transcoder->GenerateCommandLine($this->_design, $this->_target, $extra);
 }
Example #3
0
 /**
  *
  * @param unknown_type $targetVid
  * @param unknown_type $wmWid
  * @param unknown_type $wmHgt
  * @return string
  */
 protected static function generateWatermarkParams($targetVid, $wmWid = KDLCmdlinePlaceholders::WaterMarkWidth, $wmHgt = KDLCmdlinePlaceholders::WaterMarkHeight)
 {
     /*
      * FFMpeg 2.7 automatically rotates the output 
      * into 'non-rotated' orientation. No need to do it explicitly 
      */
     $rotation = null;
     if (isset($targetVid->_rotation)) {
         $rotation = $targetVid->_rotation;
         $targetVid->_rotation = null;
     }
     $watermarkStr = parent::generateWatermarkParams($targetVid, $wmWid, $wmHgt);
     $targetVid->_rotation = $rotation;
     return $watermarkStr;
 }