- class weldx.util.media_file.MediaFile(path_or_array, reference_time=None, fps=None)#
Encapsulates a media file, like video or image stacks making them accessible.
The underlying images are encapsulated to be loaded lazily (via Dask) and can be accessed by a time coordinate in case of videos.
tuple]) – Path pointing towards a video, or tiff stack. If an array is given, it will be treated as a video.
Timestamp]) – A reference time, when this media was recorded. Useful, when passing arrays.
float]) – Frames per second in case of a video. Has to be passed in case
path_or_arraywas given as list of frames.
File reference to underlying file/directory.
Get underlying DataArray.
In case of time-dynamic data, return its duration.
Frames per second.
Initialized from file or not?
Time of recording of this media (if known).
Resolution in pixels (widths, height).