diff --git a/README.md b/README.md index 10e3c1258..86cec43bf 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ To install the API client with composer, add the following to your composer.json { "require": { - "bitmovin/bitmovin-api-sdk-php": "1.206.0" + "bitmovin/bitmovin-api-sdk-php": "1.207.0" } } ``` @@ -49,7 +49,7 @@ Then run `php composer.phar install` OR -run the following command: `php composer.phar require bitmovin/bitmovin-api-sdk-php:1.206.0` +run the following command: `php composer.phar require bitmovin/bitmovin-api-sdk-php:1.207.0` ## Initialization diff --git a/composer.json b/composer.json index cbd3fd446..8074393d4 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "bitmovin/bitmovin-api-sdk-php", "description": "This is the Bitmovin API SDK for PHP", - "version": "1.206.0", + "version": "1.207.0", "authors": [ { "name": "Bitmovin Inc", diff --git a/docs/classes/BitmovinApiSdk_Models_Av1PerTitleConfiguration.html b/docs/classes/BitmovinApiSdk_Models_Av1PerTitleConfiguration.html index dfd6c9d90..e677bf85e 100644 --- a/docs/classes/BitmovinApiSdk_Models_Av1PerTitleConfiguration.html +++ b/docs/classes/BitmovinApiSdk_Models_Av1PerTitleConfiguration.html @@ -67,16 +67,16 @@

BitmovinApiSdk\Models\Av1PerTitleConfigurat

Synopsis

class Av1PerTitleConfiguration extends PerTitleConfiguration - {

Methods

-

public

-

Inherited from BitmovinApiSdk\Models\PerTitleConfiguration

public

Inherited from BitmovinApiSdk\Common\ApiResource

public

diff --git a/docs/classes/BitmovinApiSdk_Models_H264PerTitleConfiguration.html b/docs/classes/BitmovinApiSdk_Models_H264PerTitleConfiguration.html index 7dd5501b0..30d6406ec 100644 --- a/docs/classes/BitmovinApiSdk_Models_H264PerTitleConfiguration.html +++ b/docs/classes/BitmovinApiSdk_Models_H264PerTitleConfiguration.html @@ -67,8 +67,7 @@

BitmovinApiSdk\Models\H264PerTitleConfigura

Synopsis

class H264PerTitleConfiguration extends PerTitleConfiguration - {

Inherited from BitmovinApiSdk\Common\ApiResource

public

diff --git a/docs/classes/BitmovinApiSdk_Models_H265PerTitleConfiguration.html b/docs/classes/BitmovinApiSdk_Models_H265PerTitleConfiguration.html index ad1cbd1ba..cb6eef9d8 100644 --- a/docs/classes/BitmovinApiSdk_Models_H265PerTitleConfiguration.html +++ b/docs/classes/BitmovinApiSdk_Models_H265PerTitleConfiguration.html @@ -67,8 +67,7 @@

BitmovinApiSdk\Models\H265PerTitleConfigura

Synopsis

class H265PerTitleConfiguration extends PerTitleConfiguration - {

Inherited from BitmovinApiSdk\Common\ApiResource

public

diff --git a/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration.html b/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration.html index b3bfc4236..39431bb4f 100644 --- a/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration.html +++ b/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration.html @@ -74,6 +74,8 @@

Synopsis

  • public AutoRepresentation $autoRepresentations;
  • public float $complexityFactor;
  • public PerTitleFixedResolutionAndBitrateConfiguration $fixedResolutionAndBitrateConfiguration; +
  • public float $targetQualityCrf; +
  • public float $resolutionScaleFactor;
    • // Inherited methods from ApiResource
    • public void __construct()
    • public static $this create()
    • public void toArray() @@ -122,6 +126,12 @@

      public

    • $minBitrateStepSize — float
    • +
    • $resolutionScaleFactor + — + float
    • +
    • $targetQualityCrf + — + float

    Methods

    @@ -145,6 +155,10 @@

    public

    — The minimum bitrate that will be used by the Per-Title algorithm.
  • minBitrateStepSize() — The minimum ratio between the bitrates of generated renditions, e.g. if the first bitrate is 240,000, a minimum ratio of 1.5 will require the next higher bitrate to be at least 360,000
  • +
  • resolutionScaleFactor() + — 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.
  • +
  • targetQualityCrf() + — Desired target quality of the highest representation expressed as CRF value
  • Inherited from BitmovinApiSdk\Common\ApiResource

    public

    diff --git a/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration/resolutionScaleFactor.html b/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration/resolutionScaleFactor.html new file mode 100644 index 000000000..e70042891 --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration/resolutionScaleFactor.html @@ -0,0 +1,94 @@ + + + + + phpDox - BitmovinApiSdk\Models\PerTitleConfiguration::resolutionScaleFactor + + + + + +
    +
    + +
    + +
    +

    BitmovinApiSdk\Models\PerTitleConfiguration::resolutionScaleFactor

    +

    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.

    +

    +

      +
        +

        Signature

        +
        + public function resolutionScaleFactor(float + $resolutionScaleFactor ) + +
        +

        Parameters

        +
        +
        $resolutionScaleFactor + — + float
        +
        +
        +

        Returns

        +
        +
        $this
        +

        +
        +
        +
    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration/targetQualityCrf.html b/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration/targetQualityCrf.html new file mode 100644 index 000000000..079496f09 --- /dev/null +++ b/docs/classes/BitmovinApiSdk_Models_PerTitleConfiguration/targetQualityCrf.html @@ -0,0 +1,94 @@ + + + + + phpDox - BitmovinApiSdk\Models\PerTitleConfiguration::targetQualityCrf + + + + + +
    +
    + +
    + +
    +

    BitmovinApiSdk\Models\PerTitleConfiguration::targetQualityCrf

    +

    Desired target quality of the highest representation expressed as CRF value

    +

    +

      +
        +

        Signature

        +
        + public function targetQualityCrf(float + $targetQualityCrf ) + +
        +

        Parameters

        +
        +
        $targetQualityCrf + — + float
        +
        +
        +

        Returns

        +
        +
        $this
        +

        +
        +
        +
    +
    +
    + Generated using phpDox 0.12.0 - Copyright (C) 2010 - 2024 by Arne Blankerts and Contributors +
    + + diff --git a/docs/classes/BitmovinApiSdk_Models_Vp9PerTitleConfiguration.html b/docs/classes/BitmovinApiSdk_Models_Vp9PerTitleConfiguration.html index 5b4bd886f..6f0103176 100644 --- a/docs/classes/BitmovinApiSdk_Models_Vp9PerTitleConfiguration.html +++ b/docs/classes/BitmovinApiSdk_Models_Vp9PerTitleConfiguration.html @@ -67,16 +67,16 @@

    BitmovinApiSdk\Models\Vp9PerTitleConfigurat

    Synopsis

    class Vp9PerTitleConfiguration extends PerTitleConfiguration - {

    Methods

    -

    public

    -

    Inherited from BitmovinApiSdk\Models\PerTitleConfiguration

    public

      @@ -157,6 +154,10 @@

      public

      — The minimum bitrate that will be used by the Per-Title algorithm.
    • minBitrateStepSize() — The minimum ratio between the bitrates of generated renditions, e.g. if the first bitrate is 240,000, a minimum ratio of 1.5 will require the next higher bitrate to be at least 360,000
    • +
    • resolutionScaleFactor() + — 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.
    • +
    • targetQualityCrf() + — Desired target quality of the highest representation expressed as CRF value

    Inherited from BitmovinApiSdk\Common\ApiResource

    public

    diff --git a/docs/index.html b/docs/index.html index b204dc374..99f9218de 100644 --- a/docs/index.html +++ b/docs/index.html @@ -34,7 +34,7 @@

    Software Documentation

    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; - } }