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 If it doesn't find one it will warn you and resort to the default settings_builder preset. You can either pass settings as usual or a filepath here. If the filepath doesn't exist it will assume you passed actual settings and pass those to the encoder. |
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
|
light_photon_noise
|
Add a layer of light photon noise on top, serving a similar role as a light regrain / dither. This feature is supported on mpv but not on a lot of other players, which means it shouldn't replace your main regrain. Automatically disabled when either Do note that x265 will log the path to the file containing the grain pattern so, if for whatever reason that can't be a relative one, you need to check the mediainfo and make sure it doesn't contain anything sensitive. This is unlikely to happen if you don't mangle the muxtools workdir yourself. |
required | |
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
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | |
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.
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 --speed given.
Defaults to --crf 22 if no --crf or --quality 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 recommended to use this scene detection for 5fish/SVT-AV1-PSY with the |
required | |
light_photon_noise
|
Add a layer of light photon noise on top, serving a similar role as a light 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.
On supported forks, you may also use |
required | |
resumable
|
Enable or disable resumable encodes. |
required | |
quiet_merging
|
Suppress the mkvmerge output when combining chunks. |
required | |
force_webm
|
Force WebM output (only applies to SVT-AV1-Essential v4.0.1+). When disabled, the format is chosen based on the output filename, allowing you to output to IVF. Has no effect on other forks. |
required |
Source code in
vsmuxtools/video/encoders/standalone.py
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 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | |