funcs ¶
Functions:
-
parse_video_filepath
– -
source
–Automatically selects and uses an appropriate indexer to load a video or image file into VapourSynth.
parse_video_filepath ¶
parse_video_filepath(
filepath: SPathLike | Iterable[SPathLike],
) -> tuple[SPath, ParsedFile]
Source code
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
|
source ¶
source(
filepath: SPathLike | Iterable[SPathLike],
bits: int | None = None,
*,
matrix: MatrixT | None = None,
transfer: TransferT | None = None,
primaries: PrimariesT | None = None,
chroma_location: ChromaLocationT | None = None,
color_range: ColorRangeT | None = None,
field_based: FieldBasedT | None = None,
ref: VideoNode | None = None,
name: str | Literal[False] = False,
**kwargs: Any
) -> VideoNode
source(
*,
bits: int | None = None,
matrix: MatrixT | None = None,
transfer: TransferT | None = None,
primaries: PrimariesT | None = None,
chroma_location: ChromaLocationT | None = None,
color_range: ColorRangeT | None = None,
field_based: FieldBasedT | None = None,
ref: VideoNode | None = None,
name: str | Literal[False] = False,
**kwargs: Any
) -> Callable[[str], VideoNode]
source(
filepath: None,
bits: int | None = None,
*,
matrix: MatrixT | None = None,
transfer: TransferT | None = None,
primaries: PrimariesT | None = None,
chroma_location: ChromaLocationT | None = None,
color_range: ColorRangeT | None = None,
field_based: FieldBasedT | None = None,
ref: VideoNode | None = None,
name: str | Literal[False] = False,
**kwargs: Any
) -> Callable[[str], VideoNode]
source(
filepath: SPathLike | Iterable[SPathLike] | None = None,
bits: int | None = None,
*,
matrix: MatrixT | None = None,
transfer: TransferT | None = None,
primaries: PrimariesT | None = None,
chroma_location: ChromaLocationT | None = None,
color_range: ColorRangeT | None = None,
field_based: FieldBasedT | None = None,
ref: VideoNode | None = None,
name: str | Literal[False] = False,
**kwargs: Any
) -> VideoNode | Callable[[str], VideoNode]
Automatically selects and uses an appropriate indexer to load a video or image file into VapourSynth.
If filepath
is not provided, a partially-applied version of this function is returned, allowing delayed path specification.
Parameters:
-
filepath
¶SPathLike | Iterable[SPathLike] | None
, default:None
) –The path to the video file or image sequence. Can be a string path or an iterable of paths. If set to
None
, returns a callable that takes the file path later. -
bits
¶int | None
, default:None
) –See initialize_clip documentation.
-
matrix
¶MatrixT | None
, default:None
) –See initialize_clip documentation.
-
transfer
¶TransferT | None
, default:None
) –See initialize_clip documentation.
-
primaries
¶PrimariesT | None
, default:None
) –See initialize_clip documentation.
-
chroma_location
¶ChromaLocationT | None
, default:None
) –See initialize_clip documentation.
-
color_range
¶ColorRangeT | None
, default:None
) –See initialize_clip documentation.
-
field_based
¶FieldBasedT | None
, default:None
) –See initialize_clip documentation.
-
ref
¶VideoNode | None
, default:None
) –An optional reference clip to match format, resolution, and frame count.
-
name
¶str | Literal[False]
, default:False
) –A custom name to tag the clip with, stored in the
Name
frame prop. -
**kwargs
¶Any
, default:{}
) –Additional keyword arguments forwarded to the selected source indexer.
Raises:
-
CustomRuntimeError
–If no available indexer could open the provided file.
Returns:
-
VideoNode | Callable[[str], VideoNode]
–If
filepath
is provided, returns aVideoNode
representing the loaded clip. -
VideoNode | Callable[[str], VideoNode]
–If
filepath
isNone
, returns a callable that accepts a file path and returns the corresponding clip.
Source code
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 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 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 |
|