Skip to content

Commit

Permalink
Allow CE process short contents
Browse files Browse the repository at this point in the history
remove duration compliance, that forced CE sessions to have at least 3 chunks
  • Loading branch information
anatolkaltura authored Feb 4, 2021
1 parent d8ce69d commit c9ccbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/chunkedEncode/KChunkedEncode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand All @@ -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;
}
Expand Down

0 comments on commit c9ccbff

Please sign in to comment.