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 (
strorPath).- audio:
whether to include the audio layer. Default is
True.
Methods
Attributes
audioWhether the video has audio data.
durationThe duration of the video.
fpsThe frame rate of the video.
n_frameThe number of frames in the video.
sizeThe size of the video with a tuple of
(width, height).