pixano.datasets.utils.video
create_video_preview(path, frame_urls, fps=25, scale=0.5)
Create a video preview by writing a sequence of frames to a video file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
path
|
Path
|
The path to the output video file. |
required |
frame_urls
|
Iterable[str]
|
URLs pointing to the frames of the video. |
required |
fps
|
int
|
The frames per second of the output video. |
25
|
scale
|
float
|
The scale factor to resize the frames. |
0.5
|