standalone
x264
dataclass
Bases: SupportsQP
Encodes your clip to an avc/h264 file using x264.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
str | PathLike | list[str] | None
|
This will by default try to look for an |
None
|
zones
|
Zone | list[Zone] | None
|
With this you can tweak settings of specific regions of the video. In x264 this includes but is not limited to CRF. For example (100, 300, "crf", 12) or [(100, 300, "crf", 12), (500, 750, 1.3)] If the third part is not a string it will assume a bitrate multiplier (or "b") |
None
|
qp_file
|
PathLike | bool | None
|
Here you can pass a bool to en/disable or an existing filepath for one. |
None
|
qp_clip
|
src_file | VideoNode | None
|
Can either be a straight up VideoNode or a SRC_FILE/FileInfo from this package. If neither a clip or a file are given it will simply skip. If only a clip is given it will generate one. |
None
|
add_props
|
bool | None
|
This will explicitly add all props taken from the clip to the command line. This will be disabled by default if you are using a file and otherwise enabled. Files can have their own tokens like in vs-encode/vardautomation that will be filled in. |
None
|
sar
|
str | None
|
Here you can pass your Pixel / Sample Aspect Ratio. This will overwrite whatever is in the clip if passed. |
None
|
resumable
|
Enable or disable resumable encodes. Very useful for people that have scripts that crash their PC (skill issue tbh) |
required |
Source code in
vsmuxtools/video/encoders/standalone.py
x265
dataclass
Bases: SupportsQP
Encodes your clip to an hevc/h265 file using x265.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
str | PathLike | list[str] | None
|
This will by default try to look for an |
None
|
zones
|
Zone | list[Zone] | None
|
With this you can tweak settings of specific regions of the video. In x265 you're basically limited to a flat bitrate multiplier or force QP ("q") For example (100, 300, "b", 1.2) or [(100, 300, "q", 12), (500, 750, 1.3)] If the third part is not a string it will assume a bitrate multiplier (or "b") |
None
|
qp_file
|
PathLike | bool | None
|
Here you can pass a bool to en/disable or an existing filepath for one. |
None
|
qp_clip
|
src_file | VideoNode | None
|
Can either be a straight up VideoNode or a SRC_FILE/FileInfo from this package. If neither a clip or a file are given it will simply skip. If only a clip is given it will generate one. |
None
|
add_props
|
bool | None
|
This will explicitly add all props taken from the clip to the command line. This will be disabled by default if you are using a file and otherwise enabled. Files can have their own tokens like in vs-encode/vardautomation that will be filled in. |
None
|
sar
|
str | None
|
Here you can pass your Pixel / Sample Aspect Ratio. This will overwrite whatever is in the clip if passed. |
None
|
resumable
|
Enable or disable resumable encodes. Very useful for people that have scripts that crash their PC (skill issue tbh) |
required | |
csv
|
Either a bool to enable or disable csv logging or a Filepath for said csv. |
required |
Source code in
vsmuxtools/video/encoders/standalone.py
LosslessX264
dataclass
Bases: VideoEncoder
Uses x264 to encode clip to a lossless avc stream.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
preset
|
Can either be a string of some x264 preset or any of the 3 predefined presets. |
required | |
settings
|
Any other settings you might want to pass. Entirely optional. |
required | |
add_props
|
This will explicitly add all props taken from the clip to the command line. |
required |
Source code in
vsmuxtools/video/encoders/standalone.py
SVTAV1
dataclass
Bases: VideoEncoder
Uses SvtAv1EncApp to encode clip to an AV1 stream.
Do not use this for high fidelity encoding.
You can use the available settings_builders for a set of default parameters.
For better explanations of parameters, check the Docs/Parameters.md file in encoder's GitHub or GitLab.
Defaults to preset 2 if no preset or quality params given.
Defaults to crf 22 if no ratecontrol related params given.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sd_clip
|
Perform scene detection for the encoder. Can either be a straight up VideoNode or a SRC_FILE/FileInfo from this package. It is highly recommended for you to provide a clip or a file here for scene detection, as most SVT-AV1 forks don't have scene detection at all. The only exception is SVT-AV1-Essential which can perform its own scene detection. |
required | |
photon_noise
|
Add a basic layer of light photon noise on top, serving a similar role as regrain / dither. For a layer of noise with different strength or coarseness, you can generate it yourself following the guide available in AV1 weeb server. |
required |
Source code in
vsmuxtools/video/encoders/standalone.py
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | |