y5gfunc.source.wobbly.io.video¶
video
¶
Video loading and source handling.
Functions:
| Name | Description |
|---|---|
load_source_video |
Load source video based on specified filter |
query_format |
Query video format ID |
apply_frame_properties |
Apply frame properties to video frames |
Attributes:
| Name | Type | Description |
|---|---|---|
core |
|
load_source_video
¶
load_source_video(input_file: str, source_filter: str) -> VideoNode
Load source video based on specified filter
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Path to input video file |
required |
|
str
|
Source filter to use (plugin.function) |
required |
Returns:
| Type | Description |
|---|---|
VideoNode
|
Loaded video node |
Raises:
| Type | Description |
|---|---|
WobblyInputError
|
If the input file doesn't exist |
WobblyProcessError
|
If loading fails |
Source code in y5gfunc/source/wobbly/io/video.py
query_format
¶
query_format(clip: VideoNode, bits: int, sample_type: VideoFormat, subsampling_w: Optional[int] = None, subsampling_h: Optional[int] = None) -> int
Query video format ID
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
VideoNode
|
Reference clip |
required |
|
int
|
Bit depth |
required |
|
VideoFormat
|
Sample type (FLOAT or INTEGER) |
required |
|
Optional[int]
|
Horizontal subsampling, or None to use reference clip's value |
None
|
|
Optional[int]
|
Vertical subsampling, or None to use reference clip's value |
None
|
Returns:
| Type | Description |
|---|---|
int
|
Format ID |
Source code in y5gfunc/source/wobbly/io/video.py
apply_frame_properties
¶
apply_frame_properties(clip: VideoNode, frame_props: FramePropertyMap) -> VideoNode
Apply frame properties to video frames
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
VideoNode
|
Input clip |
required |
|
FramePropertyMap
|
Frame property mapping |
required |
Returns:
| Type | Description |
|---|---|
VideoNode
|
Clip with applied frame properties |