Build
-
Tue, 24 Sep 2024 09:53:33 +0000
+
Wed, 02 Oct 2024 10:21:48 +0000
VCS Info
tag:
diff --git a/src/Common/Middleware/CustomApiHeaders.php b/src/Common/Middleware/CustomApiHeaders.php
index 013d42cb0..c017417ab 100644
--- a/src/Common/Middleware/CustomApiHeaders.php
+++ b/src/Common/Middleware/CustomApiHeaders.php
@@ -17,7 +17,7 @@ public function __construct(string $apiKey, ?string $tenantOrgId)
'Content-Type' => 'application/json',
'X-Api-Key' => $apiKey,
'X-Api-Client' => 'bitmovin-api-sdk-php',
- 'X-Api-Client-Version' => '1.206.0',
+ 'X-Api-Client-Version' => '1.207.0',
];
if ($tenantOrgId !== null) {
diff --git a/src/Models/Av1PerTitleConfiguration.php b/src/Models/Av1PerTitleConfiguration.php
index 5cfc7ad76..73adb3780 100644
--- a/src/Models/Av1PerTitleConfiguration.php
+++ b/src/Models/Av1PerTitleConfiguration.php
@@ -7,25 +7,9 @@
class Av1PerTitleConfiguration extends PerTitleConfiguration
{
- /** @var float */
- public $targetQualityCrf;
-
public function __construct($attributes = null)
{
parent::__construct($attributes);
}
-
- /**
- * Desired target quality of the highest representation expressed as CRF value
- *
- * @param float $targetQualityCrf
- * @return $this
- */
- public function targetQualityCrf(float $targetQualityCrf)
- {
- $this->targetQualityCrf = $targetQualityCrf;
-
- return $this;
- }
}
diff --git a/src/Models/H264PerTitleConfiguration.php b/src/Models/H264PerTitleConfiguration.php
index 2d251d949..c28ac593f 100644
--- a/src/Models/H264PerTitleConfiguration.php
+++ b/src/Models/H264PerTitleConfiguration.php
@@ -7,9 +7,6 @@
class H264PerTitleConfiguration extends PerTitleConfiguration
{
- /** @var float */
- public $targetQualityCrf;
-
/** @var float */
public $codecMinBitrateFactor;
@@ -24,19 +21,6 @@ public function __construct($attributes = null)
parent::__construct($attributes);
}
- /**
- * Desired target quality of the highest representation expressed as CRF value
- *
- * @param float $targetQualityCrf
- * @return $this
- */
- public function targetQualityCrf(float $targetQualityCrf)
- {
- $this->targetQualityCrf = $targetQualityCrf;
-
- return $this;
- }
-
/**
* This factor is used to calculate the minBitrate of the codec configuration for the generated representations as a multiple of the targetBitrate
*
diff --git a/src/Models/H265PerTitleConfiguration.php b/src/Models/H265PerTitleConfiguration.php
index 7d11ad445..46b6b9774 100644
--- a/src/Models/H265PerTitleConfiguration.php
+++ b/src/Models/H265PerTitleConfiguration.php
@@ -7,9 +7,6 @@
class H265PerTitleConfiguration extends PerTitleConfiguration
{
- /** @var float */
- public $targetQualityCrf;
-
/** @var float */
public $codecMinBitrateFactor;
@@ -24,19 +21,6 @@ public function __construct($attributes = null)
parent::__construct($attributes);
}
- /**
- * Desired target quality of the highest representation expressed as CRF value
- *
- * @param float $targetQualityCrf
- * @return $this
- */
- public function targetQualityCrf(float $targetQualityCrf)
- {
- $this->targetQualityCrf = $targetQualityCrf;
-
- return $this;
- }
-
/**
* This factor is used to calculate the minBitrate of the codec configuration for the generated representations as a multiple of the targetBitrate
*
diff --git a/src/Models/PerTitleConfiguration.php b/src/Models/PerTitleConfiguration.php
index cc1c0b375..bf8e5a31b 100644
--- a/src/Models/PerTitleConfiguration.php
+++ b/src/Models/PerTitleConfiguration.php
@@ -28,6 +28,12 @@ class PerTitleConfiguration extends \BitmovinApiSdk\Common\ApiResource
/** @var PerTitleFixedResolutionAndBitrateConfiguration */
public $fixedResolutionAndBitrateConfiguration;
+ /** @var float */
+ public $targetQualityCrf;
+
+ /** @var float */
+ public $resolutionScaleFactor;
+
public function __construct($attributes = null)
{
parent::__construct($attributes);
@@ -125,5 +131,31 @@ public function fixedResolutionAndBitrateConfiguration(PerTitleFixedResolutionAn
return $this;
}
+
+ /**
+ * Desired target quality of the highest representation expressed as CRF value
+ *
+ * @param float $targetQualityCrf
+ * @return $this
+ */
+ public function targetQualityCrf(float $targetQualityCrf)
+ {
+ $this->targetQualityCrf = $targetQualityCrf;
+
+ return $this;
+ }
+
+ /**
+ * This factor influences the resolution selection of the per-title algorithm. The default value is 0.0. negative values will lead to results where the algorithm will choose lower resolutions for given bitrates. A positive value will result in higher resolutions to be selected. The range of the factor is -5.0 to +5.0. Please note that changing this factor might also lead to slightly different bitrate selection by the algorithm.
+ *
+ * @param float $resolutionScaleFactor
+ * @return $this
+ */
+ public function resolutionScaleFactor(float $resolutionScaleFactor)
+ {
+ $this->resolutionScaleFactor = $resolutionScaleFactor;
+
+ return $this;
+ }
}
diff --git a/src/Models/Vp9PerTitleConfiguration.php b/src/Models/Vp9PerTitleConfiguration.php
index 4ec1eb3b8..6305c828b 100644
--- a/src/Models/Vp9PerTitleConfiguration.php
+++ b/src/Models/Vp9PerTitleConfiguration.php
@@ -7,25 +7,9 @@
class Vp9PerTitleConfiguration extends PerTitleConfiguration
{
- /** @var float */
- public $targetQualityCrf;
-
public function __construct($attributes = null)
{
parent::__construct($attributes);
}
-
- /**
- * Desired target quality of the highest representation expressed as CRF value
- *
- * @param float $targetQualityCrf
- * @return $this
- */
- public function targetQualityCrf(float $targetQualityCrf)
- {
- $this->targetQualityCrf = $targetQualityCrf;
-
- return $this;
- }
}