D2VWitch ¶
Classes:
-
D2VWitch–
D2VWitch ¶
D2VWitch(
*,
bin_path: SPathLike | MissingT = MISSING,
ext: str | MissingT = MISSING,
force: bool = True,
default_out_folder: SPathLike | Literal[False] | None = None,
**kwargs: Any
)
Bases: ExternalIndexer
Methods:
-
ensure_obj–Ensure that the input is a indexer instance, resolving it if necessary.
-
file_corrupted– -
from_param–Resolve and return an Indexer type from a given input (string, type, or instance).
-
get_cmd–Returns the indexer command
-
get_idx_file_path– -
get_info–Returns info about the indexing file
-
get_joined_names– -
get_out_folder– -
get_video_idx_path– -
get_videos_hash– -
index– -
normalize_filenames– -
source–Load one or more input files using the indexer and return a processed clip.
-
source_func– -
update_video_filenames–
Attributes:
-
bin_path– -
default_out_folder– -
ext– -
force– -
indexer_kwargs–
Source code in vssource/indexers/base.py
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | |
ensure_obj classmethod ¶
ensure_obj(
indexer: str | type[Self] | Self | None = None,
/,
func_except: FuncExcept | None = None,
) -> Self
Ensure that the input is a indexer instance, resolving it if necessary.
Parameters:
-
(indexer¶str | type[Self] | Self | None, default:None) –Indexer identifier (string, class, or instance). Plugin namespace is also supported.
-
(func_except¶FuncExcept | None, default:None) –Function returned for custom error handling.
Returns:
-
Self–Indexer instance.
Source code in vssource/indexers/base.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |
file_corrupted ¶
file_corrupted(index_path: SPath) -> None
Source code in vssource/indexers/base.py
362 363 364 365 366 367 368 369 | |
from_param classmethod ¶
from_param(
indexer: str | type[Self] | Self | None = None,
/,
func_except: FuncExcept | None = None,
) -> type[Self]
Resolve and return an Indexer type from a given input (string, type, or instance).
Parameters:
-
(indexer¶str | type[Self] | Self | None, default:None) –Indexer identifier (string, class, or instance). Plugin namespace is also supported.
-
(func_except¶FuncExcept | None, default:None) –Function returned for custom error handling.
Returns:
Source code in vssource/indexers/base.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | |
get_cmd ¶
Returns the indexer command
Source code in vssource/indexers/D2VWitch.py
27 28 | |
get_idx_file_path ¶
Source code in vssource/indexers/base.py
359 360 | |
get_info ¶
get_info(index_path: SPath, file_idx: int = -1) -> D2VIndexFileInfo
Returns info about the indexing file
Source code in vssource/indexers/D2VWitch.py
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 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 | |
get_joined_names classmethod ¶
Source code in vssource/indexers/base.py
144 145 146 | |
get_out_folder ¶
get_out_folder(
output_folder: SPathLike | Literal[False] | None = None,
file: SPath | None = None,
) -> SPath
Source code in vssource/indexers/base.py
346 347 348 349 350 351 352 353 354 355 356 357 | |
get_video_idx_path ¶
Source code in vssource/indexers/base.py
417 418 419 420 421 422 | |
get_videos_hash classmethod ¶
Source code in vssource/indexers/base.py
148 149 150 151 152 153 154 | |
index ¶
index(
files: Sequence[SPath],
force: bool = False,
split_files: bool = False,
output_folder: SPathLike | Literal[False] | None = None,
*cmd_args: str
) -> list[SPath]
Source code in vssource/indexers/base.py
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 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
161 162 163 164 165 166 167 168 169 170 171 | |
source ¶
source(
file: SPathLike | Iterable[SPathLike],
bits: int | None = None,
*,
matrix: MatrixLike | None = None,
transfer: TransferLike | None = None,
primaries: PrimariesLike | None = None,
chroma_location: ChromaLocation | None = None,
color_range: ColorRangeLike | None = None,
field_based: FieldBasedLike | None = None,
idx_props: bool = True,
**kwargs: Any
) -> VideoNode
Load one or more input files using the indexer and return a processed clip.
The returned clip is passed through initialize_clip to apply bit depth conversion and frame props initialization.
Source code in vssource/indexers/base.py
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
156 157 158 159 | |
update_video_filenames ¶
Source code in vssource/indexers/D2VWitch.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |