public function testEncodeOtherCodec() { $format = new ThreeGP(); $format->setVideoCodec('libx264'); $format->setAudioCodec('amr'); try { $this->ffmpeg->open($this->input)->save($format, $this->output); } catch (\FFMpeg\Exception\Exception $e) { $this->fail($e->getMessage()); } }
/** * @covers FFMpeg\Format\Video\ThreeGP::setAudioCodec * @expectedException \FFMpeg\Exception\InvalidArgumentException */ public function testSetAudioCodecException() { $this->format->setAudioCodec('unknow'); }