standlone
x264
dataclass
Bases: SupportsQP
Encodes your clip to an avc/h264 file using x264.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
settings |
str | PathLike | 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 | 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 a av1 stream.
Do not use this for high fidelity encoding.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
preset |
Encoder preset. Lower = slower & better The range is -1 to 13 for the regular SVTAV1 and -3 to 13 for SVT-AV1-PSY |
required |