Skip to content

Commit b0d7970

Browse files
committed
optimize_bitrate option for Format and Stream classes
1 parent ecf8541 commit b0d7970

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

src/Classes/Format.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,32 @@ class Format {
3232
* @var Stream
3333
*/
3434
public $stream;
35+
36+
/**
37+
* Enables/Disables per-title encoding mode. Defaults to 0.
38+
* @var int
39+
*/
40+
public $optimize_bitrate;
41+
42+
/**
43+
* Limits the lowest CRF (quality) for Per-Title Encoding mode to the specified value.
44+
* Possible values: from 0 to 51. Defaults to 0
45+
* @var int
46+
*/
47+
public $min_crf;
48+
49+
/**
50+
* Limits the highest CRF (quality) for Per-Title Encoding mode to the specified value.
51+
* Possible values: from 0 to 51. Defaults to 0
52+
* @var int
53+
*/
54+
public $max_crf;
55+
56+
/**
57+
* Adjusts best CRF predicted for each scene with the specified value in Per-Title Encoding mode.
58+
* Should be integer in range -10..10. Defaults to 0
59+
* @var int
60+
*/
61+
public $adjust_crf;
62+
3563
}

src/Classes/Stream.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,31 @@ class Stream {
115115
*/
116116
//public $downmix_mode;
117117

118+
/**
119+
* Enables/Disables per-title encoding mode. Defaults to 0.
120+
* @var int
121+
*/
122+
public $optimize_bitrate;
123+
124+
/**
125+
* Limits the lowest CRF (quality) for Per-Title Encoding mode to the specified value.
126+
* Possible values: from 0 to 51. Defaults to 0
127+
* @var int
128+
*/
129+
public $min_crf;
130+
131+
/**
132+
* Limits the highest CRF (quality) for Per-Title Encoding mode to the specified value.
133+
* Possible values: from 0 to 51. Defaults to 0
134+
* @var int
135+
*/
136+
public $max_crf;
137+
138+
/**
139+
* Adjusts best CRF predicted for each scene with the specified value in Per-Title Encoding mode.
140+
* Should be integer in range -10..10. Defaults to 0
141+
* @var int
142+
*/
143+
public $adjust_crf;
144+
118145
}

0 commit comments

Comments
 (0)