movis.layer.media.Video#
- class movis.layer.media.Video(video_file: str | PathLike, audio: bool = True)[source]#
Video layer to encapsulate various formats of video data.
- Args:
- video_file:
the source of the video data. It can be a file path (
str
orPath
).- audio:
whether to include the audio layer. Default is
True
.
Methods
Attributes
audio
Whether the video has audio data.
duration
The duration of the video.
fps
The frame rate of the video.
n_frame
The number of frames in the video.
size
The size of the video with a tuple of
(width, height)
.