base ¶
Type Aliases:
-
IndexerLike–Type alias for anything that can resolve to an Indexer.
Classes:
-
CacheIndexer–Indexer interface with cache storage logic.
-
ExternalIndexer– -
Indexer–Abstract indexer interface.
-
VSSourceFunc–
IndexerLike ¶
CacheIndexer ¶
Bases: Indexer
Indexer interface with cache storage logic.
Methods:
-
ensure_obj–Ensure that the input is a indexer instance, resolving it if necessary.
-
from_param–Resolve and return an Indexer type from a given input (string, type, or instance).
-
get_cache_path– -
get_joined_names– -
get_videos_hash– -
normalize_filenames– -
source–Load one or more input files using the indexer and return a processed clip.
-
source_func–
Attributes:
-
force– -
indexer_kwargs–
Source code in vssource/indexers/base.py
103 104 105 106 107 | |
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
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
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
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
get_cache_path staticmethod ¶
Source code in vssource/indexers/base.py
249 250 251 252 253 | |
get_joined_names classmethod ¶
Source code in vssource/indexers/base.py
145 146 147 | |
get_videos_hash classmethod ¶
Source code in vssource/indexers/base.py
149 150 151 152 153 154 155 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
162 163 164 165 166 167 168 169 170 171 172 | |
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,
ref: VideoNode | None = None,
name: str | None = None,
**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
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
255 256 257 258 259 260 261 262 | |
ExternalIndexer ¶
ExternalIndexer(
*,
bin_path: SPathLike | MissingT = MISSING,
ext: str | MissingT = MISSING,
force: bool = True,
default_out_folder: SPathLike | Literal[False] | None = None,
**kwargs: Any
)
Bases: Indexer
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
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | |
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
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
file_corrupted ¶
file_corrupted(index_path: SPath) -> None
Source code in vssource/indexers/base.py
363 364 365 366 367 368 369 370 | |
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
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
get_cmd abstractmethod ¶
Returns the indexer command
Source code in vssource/indexers/base.py
292 293 294 295 296 297 | |
get_idx_file_path ¶
Source code in vssource/indexers/base.py
360 361 | |
get_info abstractmethod ¶
get_info(index_path: SPath, file_idx: int = 0) -> IndexFileType
Returns info about the indexing file
Source code in vssource/indexers/base.py
299 300 301 302 303 304 | |
get_joined_names classmethod ¶
Source code in vssource/indexers/base.py
145 146 147 | |
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
347 348 349 350 351 352 353 354 355 356 357 358 | |
get_video_idx_path ¶
Source code in vssource/indexers/base.py
418 419 420 421 422 423 | |
get_videos_hash classmethod ¶
Source code in vssource/indexers/base.py
149 150 151 152 153 154 155 | |
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
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 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
162 163 164 165 166 167 168 169 170 171 172 | |
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
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 453 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
157 158 159 160 | |
Indexer ¶
Bases: ABC
Abstract indexer interface.
Methods:
-
ensure_obj–Ensure that the input is a indexer instance, resolving it if necessary.
-
from_param–Resolve and return an Indexer type from a given input (string, type, or instance).
-
get_joined_names– -
get_videos_hash– -
normalize_filenames– -
source–Load one or more input files using the indexer and return a processed clip.
-
source_func–
Attributes:
-
force– -
indexer_kwargs–
Source code in vssource/indexers/base.py
103 104 105 106 107 | |
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
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 | |
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
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
get_joined_names classmethod ¶
Source code in vssource/indexers/base.py
145 146 147 | |
get_videos_hash classmethod ¶
Source code in vssource/indexers/base.py
149 150 151 152 153 154 155 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
162 163 164 165 166 167 168 169 170 171 172 | |
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,
ref: VideoNode | None = None,
name: str | None = None,
**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
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
157 158 159 160 | |