xarray_video.open_video#
- xarray_video.open_video(filename, start_time=None, **kwargs)[source]#
Video file into an xarray dataset.
This reads a video into an xarray dataset with the video in a DataArray. If a start time is provided, a time axis will be created for the frames.
- Parameters:
filename (string) – filename of videos to open
start_time (
numpy.datetime64) – Start time of video
- Returns:
Dataset with video as a DataArray
- Return type:
dataset (
xarray.Dataset)- Raises:
VideoReadError – Missing or incompatible files