misc ¶
Classes:
-
BestSource–BestSource indexer.
-
CarefulSource–CarefulSource indexer
-
FFMS2–FFmpegSource2 indexer.
-
IMWRI–ImageMagick Writer-Reader indexer
-
LSMAS–L-SMASH-Works indexer.
-
ZipSource–vszip image reader indexer
BestSource ¶
BestSource(
*,
cachemode: int = ABSOLUTE,
rff: int | None = True,
showprogress: int | None = True,
show_pretty_progress: int | None = False,
**kwargs: Any
)
Bases: CacheIndexer
BestSource indexer.
Unlike the plugin's default behavior, the indexer cache file will be stored in .vsjet/vssource next to the script file.
When cachemode is 0, 1, or 2 (NEVER, CACHE_PATH, or CACHE_PATH_WRITE) or cachepath=None, the behavior falls back to the default cache handling defined by the BestSource plugin itself.
Parameters:
-
(cachemode¶int, default:ABSOLUTE) – -
(rff¶int | None, default:True) –Apply RFF flags to the video. If the video doesn't have or use RFF flags, the output is unchanged.
-
(showprogress¶int | None, default:True) –Print indexing progress as VapourSynth information level log messages.
-
(show_pretty_progress¶int | None, default:False) –Display a rich-based progress bar if
showprogressis also set to True.
Classes:
-
CacheMode–Cache mode.
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/misc.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
CacheMode ¶
Bases: CustomIntEnum
Cache mode.
Methods:
-
from_param–Return the enum value from a parameter.
-
value–
Attributes:
-
ABSOLUTE–Always try to read index but only write index to disk when it will make a noticeable difference
-
ABSOLUTE_WRITE–Always try to read and write index to disk and store index files
-
CACHE_PATH–Always try to read index but only write index to disk when it will make a noticeable difference
-
CACHE_PATH_WRITE–Always try to read and write index to disk and store index files in a subtree of cachepath.
-
NEVER–Never read or write index to disk.
ABSOLUTE class-attribute instance-attribute ¶
ABSOLUTE = 3
Always try to read index but only write index to disk when it will make a noticeable difference on subsequent runs and store index files in the absolute path in cachepath with track number and index extension appended.
ABSOLUTE_WRITE class-attribute instance-attribute ¶
ABSOLUTE_WRITE = 4
Always try to read and write index to disk and store index files in the absolute path in cachepath with track number and index extension appended.
CACHE_PATH class-attribute instance-attribute ¶
CACHE_PATH = 1
Always try to read index but only write index to disk when it will make a noticeable difference on subsequent runs and store index files in a subtree of cachepath.
CACHE_PATH_WRITE class-attribute instance-attribute ¶
CACHE_PATH_WRITE = 2
Always try to read and write index to disk and store index files in a subtree of cachepath.
from_param classmethod ¶
from_param(value: Any, func_except: FuncExcept | None = None) -> Self
Return the enum value from a parameter.
Parameters:
-
(value¶Any) –Value to instantiate the enum class.
-
(func_except¶FuncExcept | None, default:None) –Exception function.
Returns:
-
Self–Enum value.
Raises:
-
NotFoundEnumValue–Variable not found in the given enum.
Source code in jetpytools/enums/base.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
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/misc.py
94 95 96 97 98 99 100 101 102 103 | |
CarefulSource ¶
Bases: Indexer
CarefulSource indexer
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 | |
FFMS2 ¶
Bases: CacheIndexer
FFmpegSource2 indexer.
Unlike the plugin's default behavior, the indexer cache file will be stored in .vsjet/vssource next to the script file.
When cachefile=None, the behavior falls back to the default cache handling defined by the plugin itself.
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 | |
IMWRI ¶
Bases: Indexer
ImageMagick Writer-Reader indexer
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 | |
LSMAS ¶
Bases: CacheIndexer
L-SMASH-Works indexer.
Unlike the plugin's default behavior, the indexer cache file will be stored in .vsjet/vssource next to the script file.
When cachefile=None, the behavior falls back to the default cache handling defined by the plugin itself.
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 | |
ZipSource ¶
Bases: Indexer
vszip image reader indexer
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 | |