/** * @covers FFMpeg\Format\Video\Ogg::getAvailableVideoCodecs */ public function testGetAvailableVideoCodecs() { $this->object->setVideoCodec('libtheora'); }
function IsAudio($f) { $is_audio = false; if (preg_match('#.oga$#i', $f)) { $is_audio = true; } if (preg_match('#.ogg$#i', $f)) { $is_audio = true; } if ($is_audio) { $ogg = new Ogg($f); $is_audio = $ogg->GetCodec() == 'vorbis'; } return $is_audio; }