class_docstr: Video dataset from file.
  
  This class requires that OpenCV be installed.
class_docstr_tok: ["Video","dataset","from","file",".","This","class","requires","that","OpenCV","be","installed","."]
code: def __init__(self, *args, **kwargs) -> None:
      VideoDataset.__init__(self, *args, **kwargs)
      num_frames = self.get_num_frames()
      if (
          self.max_num_frames is None
          or num_frames < self.max_num_frames
      ):
          self.max_num_frames = num_frames
  
imports: from __future__ import annotations
  import os
  import sys
  import tempfile
  from collections.abc import Callable
  from typing import TYPE_CHECKING, Any
  import numpy
  from torch.utils.data import Dataset, IterableDataset
  from monai.utils.enums import ColorOrder
  from monai.utils.module import optional_import
label_desc: Use image node_id 1 to create a new VideoFileDataset object from inherited base classes: Dataset, VideoDataset with example: obj = VideoFileDataset()