pixano.features.schemas.views.video
Video(created_at=None, updated_at=None, **data)
Bases: View
Video view.
Attributes:
Name | Type | Description |
---|---|---|
url |
str
|
The video URL. |
num_frames |
int
|
The number of frames in the video. |
fps |
float
|
The frames per second of the video. |
width |
int
|
The video width. |
height |
int
|
The video height. |
format |
str
|
The video format. |
duration |
float
|
The video duration. |
Source code in pixano/features/schemas/base_schema.py
create_video(url, id='', item_ref=ItemRef.none(), parent_ref=ViewRef.none(), num_frames=None, fps=None, width=None, height=None, format=None, duration=None, url_relative_path=None)
Create a Video
instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
url
|
Path
|
The image URL. If not relative, the URL is converted to a relative path using |
required |
id
|
str
|
Point cloud ID. |
''
|
item_ref
|
ItemRef
|
Item reference. |
none()
|
parent_ref
|
ViewRef
|
Parent view reference. |
none()
|
num_frames
|
int | None
|
The number of frames in the video. If None, the number of frames is extracted from the video file. |
None
|
fps
|
float | None
|
The frames per second of the video. If None, the fps is extracted from the video file. |
None
|
width
|
int | None
|
The video width. If None, the width is extracted from the video file. |
None
|
height
|
int | None
|
The video height. If None, the height is extracted from the video file. |
None
|
format
|
str | None
|
The video format. If None, the format is extracted from the video file. |
None
|
duration
|
float | None
|
The video duration. If None, the duration is extracted from the video file. |
None
|
url_relative_path
|
Path | None
|
The path to convert the URL to a relative path. |
None
|
Returns:
Type | Description |
---|---|
Video
|
The created |
Source code in pixano/features/schemas/views/video.py
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 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 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|