misc ¶
Classes:
-
BestSource–BestSource indexer.
-
FFMS2–FFmpegSource2 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: bool | Callable[[float], None] | 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.
Note
You will need to call setup_logging or basicConfig to show progress.
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¶bool | Callable[[float], None] | None, default:False) –Display a rich-based progress bar if
showprogressis also set to True.
Classes:
-
CacheMode–Cache mode.
Methods:
-
asource–Load one or more input files as an [AudioNode][vs.AudioNode] using the indexer.
-
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_progress– -
has_audio–Whether this indexer supports audio sourcing.
-
has_video–Whether this indexer supports video sourcing.
-
normalize_filenames– -
pretty_progress– -
source–Load one or more input files as a [VideoNode][vs.VideoNode] using the indexer.
-
source_func–
Attributes:
-
force– -
indexer_kwargs–
Source code in vssource/indexers/misc.py
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 | |
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 | |
asource ¶
asource(
file: SPathLike | Iterable[SPathLike],
*,
track: int = -1,
sample_rate: int | None = None,
channels: Sequence[int] | None = None,
bits: int | None = None,
**kwargs: Any,
) -> AudioNode
Load one or more input files as an [AudioNode][vs.AudioNode] using the indexer.
Source code in vssource/indexers/base.py
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 | |
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
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
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
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
get_cache_path staticmethod ¶
get_cache_path(
source_path: SPathLike,
ext: str | None = None,
track: int | None = None,
is_audio: bool = False,
) -> SPath
Source code in vssource/indexers/base.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | |
get_progress staticmethod ¶
get_progress(*, console: Console | None = None) -> Progress
Source code in vssource/indexers/misc.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 | |
has_audio classmethod ¶
has_audio() -> bool
Whether this indexer supports audio sourcing.
Source code in vssource/indexers/base.py
69 70 71 72 73 | |
has_video classmethod ¶
has_video() -> bool
Whether this indexer supports video sourcing.
Source code in vssource/indexers/base.py
63 64 65 66 67 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
187 188 189 190 191 192 193 194 195 196 197 | |
pretty_progress classmethod ¶
Source code in vssource/indexers/misc.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 | |
source ¶
source(
file: SPathLike | Iterable[SPathLike],
bits: int | None = 32,
*,
matrix: MatrixLike | None = None,
transfer: TransferLike | None = None,
primaries: PrimariesLike | None = None,
chroma_location: ChromaLocation | None = None,
color_range: RangeLike | 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 as a [VideoNode][vs.VideoNode] using the indexer.
The returned clip is passed through initialize_clip to apply bit depth conversion and frame props initialization.
Source code in vssource/indexers/base.py
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
179 180 181 182 183 184 185 | |
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:
-
asource–Load one or more input files as an [AudioNode][vs.AudioNode] using the indexer.
-
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– -
has_audio–Whether this indexer supports audio sourcing.
-
has_video–Whether this indexer supports video sourcing.
-
normalize_filenames– -
source–Load one or more input files as a [VideoNode][vs.VideoNode] using the indexer.
-
source_func–
Attributes:
-
force– -
indexer_kwargs–
Source code in vssource/indexers/base.py
57 58 59 60 61 | |
asource ¶
asource(
file: SPathLike | Iterable[SPathLike],
*,
track: int = -1,
sample_rate: int | None = None,
channels: Sequence[int] | None = None,
bits: int | None = None,
**kwargs: Any,
) -> AudioNode
Load one or more input files as an [AudioNode][vs.AudioNode] using the indexer.
Source code in vssource/indexers/base.py
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 | |
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
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
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
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
get_cache_path staticmethod ¶
get_cache_path(
source_path: SPathLike,
ext: str | None = None,
track: int | None = None,
is_audio: bool = False,
) -> SPath
Source code in vssource/indexers/base.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | |
has_audio classmethod ¶
has_audio() -> bool
Whether this indexer supports audio sourcing.
Source code in vssource/indexers/base.py
69 70 71 72 73 | |
has_video classmethod ¶
has_video() -> bool
Whether this indexer supports video sourcing.
Source code in vssource/indexers/base.py
63 64 65 66 67 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
187 188 189 190 191 192 193 194 195 196 197 | |
source ¶
source(
file: SPathLike | Iterable[SPathLike],
bits: int | None = 32,
*,
matrix: MatrixLike | None = None,
transfer: TransferLike | None = None,
primaries: PrimariesLike | None = None,
chroma_location: ChromaLocation | None = None,
color_range: RangeLike | 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 as a [VideoNode][vs.VideoNode] using the indexer.
The returned clip is passed through initialize_clip to apply bit depth conversion and frame props initialization.
Source code in vssource/indexers/base.py
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
179 180 181 182 183 184 185 | |
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:
-
asource–Load one or more input files as an [AudioNode][vs.AudioNode] using the indexer.
-
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– -
has_audio–Whether this indexer supports audio sourcing.
-
has_video–Whether this indexer supports video sourcing.
-
normalize_filenames– -
source–Load one or more input files as a [VideoNode][vs.VideoNode] using the indexer.
-
source_func–
Attributes:
-
force– -
indexer_kwargs–
Source code in vssource/indexers/base.py
57 58 59 60 61 | |
asource ¶
asource(
file: SPathLike | Iterable[SPathLike],
*,
track: int = -1,
sample_rate: int | None = None,
channels: Sequence[int] | None = None,
bits: int | None = None,
**kwargs: Any,
) -> AudioNode
Load one or more input files as an [AudioNode][vs.AudioNode] using the indexer.
Source code in vssource/indexers/base.py
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 | |
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
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
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
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
get_cache_path staticmethod ¶
get_cache_path(
source_path: SPathLike,
ext: str | None = None,
track: int | None = None,
is_audio: bool = False,
) -> SPath
Source code in vssource/indexers/base.py
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 | |
has_audio classmethod ¶
has_audio() -> bool
Whether this indexer supports audio sourcing.
Source code in vssource/indexers/base.py
69 70 71 72 73 | |
has_video classmethod ¶
has_video() -> bool
Whether this indexer supports video sourcing.
Source code in vssource/indexers/base.py
63 64 65 66 67 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
187 188 189 190 191 192 193 194 195 196 197 | |
source ¶
source(
file: SPathLike | Iterable[SPathLike],
bits: int | None = 32,
*,
matrix: MatrixLike | None = None,
transfer: TransferLike | None = None,
primaries: PrimariesLike | None = None,
chroma_location: ChromaLocation | None = None,
color_range: RangeLike | 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 as a [VideoNode][vs.VideoNode] using the indexer.
The returned clip is passed through initialize_clip to apply bit depth conversion and frame props initialization.
Source code in vssource/indexers/base.py
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
179 180 181 182 183 184 185 | |
ZipSource ¶
Bases: Indexer
vszip image reader indexer
Methods:
-
asource–Load one or more input files as an [AudioNode][vs.AudioNode] using the indexer.
-
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).
-
has_audio–Whether this indexer supports audio sourcing.
-
has_video–Whether this indexer supports video sourcing.
-
normalize_filenames– -
source–Load one or more input files as a [VideoNode][vs.VideoNode] using the indexer.
-
source_func–
Attributes:
-
force– -
indexer_kwargs–
Source code in vssource/indexers/base.py
57 58 59 60 61 | |
asource ¶
asource(
file: SPathLike | Iterable[SPathLike],
*,
track: int = -1,
sample_rate: int | None = None,
channels: Sequence[int] | None = None,
bits: int | None = None,
**kwargs: Any,
) -> AudioNode
Load one or more input files as an [AudioNode][vs.AudioNode] using the indexer.
Source code in vssource/indexers/base.py
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 | |
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
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
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
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | |
has_audio classmethod ¶
has_audio() -> bool
Whether this indexer supports audio sourcing.
Source code in vssource/indexers/base.py
69 70 71 72 73 | |
has_video classmethod ¶
has_video() -> bool
Whether this indexer supports video sourcing.
Source code in vssource/indexers/base.py
63 64 65 66 67 | |
normalize_filenames classmethod ¶
Source code in vssource/indexers/base.py
187 188 189 190 191 192 193 194 195 196 197 | |
source ¶
source(
file: SPathLike | Iterable[SPathLike],
bits: int | None = 32,
*,
matrix: MatrixLike | None = None,
transfer: TransferLike | None = None,
primaries: PrimariesLike | None = None,
chroma_location: ChromaLocation | None = None,
color_range: RangeLike | 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 as a [VideoNode][vs.VideoNode] using the indexer.
The returned clip is passed through initialize_clip to apply bit depth conversion and frame props initialization.
Source code in vssource/indexers/base.py
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 | |
source_func classmethod ¶
Source code in vssource/indexers/base.py
179 180 181 182 183 184 185 | |