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.
For better explanations of params, check the --help
of the encoder or the gitlab wiki page.
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 SVTAV1-PSY |
required | |
crf
|
Constant rate factor, lower = better |
required | |
tune
|
The tuning metric. None = 2 for SVTAV1 and 3 for SVTAV1-PSY |
required | |
qp_clip
|
Can either be a straight up VideoNode or a SRC_FILE/FileInfo from this package. It is highly recommended to do this so you can force keyframes. |
required |
Source code in vsmuxtools/video/encoders/standalone.py
175 176 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 |
|