From c9ccbff11765b9728988d67c5316a137b424f064 Mon Sep 17 00:00:00 2001 From: Anatol Date: Thu, 4 Feb 2021 20:04:55 +0200 Subject: [PATCH] Allow CE process short contents remove duration compliance, that forced CE sessions to have at least 3 chunks --- infra/chunkedEncode/KChunkedEncode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/chunkedEncode/KChunkedEncode.php b/infra/chunkedEncode/KChunkedEncode.php index e5b341586a3..762e299df90 100644 --- a/infra/chunkedEncode/KChunkedEncode.php +++ b/infra/chunkedEncode/KChunkedEncode.php @@ -294,7 +294,7 @@ static public function verifySupport($vcodec, $acodec=null, $format, $fps, $gop, /* * Verify session duration - it should be at least twice the chunk duration - */ + * if(isset($height)) { $minimalDuration = KChunkedEncodeSetup::calculateChunkDuration($height)*2; if($duration<$minimalDuration){ @@ -305,7 +305,7 @@ static public function verifySupport($vcodec, $acodec=null, $format, $fps, $gop, else if($duration<180){ KalturaLog::log($msgStr="UNSUPPORTED: duration ($duration) too short, must be at least 180sec"); return false; - } + }*/ return true; }