base ¶
Classes:
-
CacheIndexer–Indexer interface with cache storage logic.
-
ExternalIndexer– -
Indexer–Abstract indexer interface.
-
VSSourceFunc–
CacheIndexer ¶
Bases: Indexer
Indexer interface with cache storage logic.
Methods:
-
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
44 45 46 47 48 | |
get_cache_path staticmethod ¶
Source code in vssource/indexers/base.py
158 159 160 161 162 | |
get_joined_names classmethod ¶
Source code in vssource/indexers/base.py
54 55 56 | |
get_videos_hash classmethod ¶
Source code in vssource/indexers/base.py
58 59 60 61 62 63 64 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
71 72 73 74 75 76 77 78 79 80 81 | |
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
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
164 165 166 167 168 169 170 171 | |
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:
-
file_corrupted– -
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
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
file_corrupted ¶
file_corrupted(index_path: SPath) -> None
Source code in vssource/indexers/base.py
272 273 274 275 276 277 278 279 | |
get_cmd abstractmethod ¶
Returns the indexer command
Source code in vssource/indexers/base.py
201 202 203 204 205 206 | |
get_idx_file_path ¶
Source code in vssource/indexers/base.py
269 270 | |
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
208 209 210 211 212 213 | |
get_joined_names classmethod ¶
Source code in vssource/indexers/base.py
54 55 56 | |
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
256 257 258 259 260 261 262 263 264 265 266 267 | |
get_video_idx_path ¶
Source code in vssource/indexers/base.py
327 328 329 330 331 332 | |
get_videos_hash classmethod ¶
Source code in vssource/indexers/base.py
58 59 60 61 62 63 64 | |
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
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 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
71 72 73 74 75 76 77 78 79 80 81 | |
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
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
66 67 68 69 | |
Indexer ¶
Bases: ABC
Abstract indexer interface.
Methods:
-
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
44 45 46 47 48 | |
get_joined_names classmethod ¶
Source code in vssource/indexers/base.py
54 55 56 | |
get_videos_hash classmethod ¶
Source code in vssource/indexers/base.py
58 59 60 61 62 63 64 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
71 72 73 74 75 76 77 78 79 80 81 | |
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
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
66 67 68 69 | |