/** * @covers FFMpeg\FFMpeg::encode * @covers FFMpeg\FFMpeg::encodeVideo */ public function testEncodeX264() { $dest = __DIR__ . '/../../files/encode_test.mp4'; $format = new Format\Video\WebM(); $format->setDimensions(32, 32); $this->object->open(__DIR__ . '/../../files/Test.ogv'); $this->object->encode($format, $dest); $this->probe->probeFormat($dest); unlink($dest); }
/** * @covers FFMpeg\FFProbe::probeFormat * @covers FFMpeg\FFProbe::executeProbe * @expectedException \InvalidArgumentException */ public function testProbeFormatInvalidPathFile() { $this->object->probeFormat(__DIR__ . '/../../files/unknown.file'); }