class_docstr: FFmpegVideoGraphIODataset
class_docstr_tok: ["FFmpegVideoGraphIODataset"]
docstr: FFmpegVideoGraphIODataset.
docstr_tok: ["FFmpegVideoGraphIODataset","."]
code: def __init__(self, resource, dtype, internal=True):
      """FFmpegVideoGraphIODataset."""
      with tf.name_scope("FFmpegVideoGraphIODataset"):
          from tensorflow_io.python.ops import (  # pylint: disable=import-outside-toplevel
              ffmpeg_ops,
          )
  
          assert internal
  
          self._resource = resource
          dataset = tf.data.Dataset.range(0, sys.maxsize)
          dataset = dataset.map(lambda e: e == 0)
          dataset = dataset.map(
              lambda reset: ffmpeg_ops.io_ffmpeg_video_readable_next(
                  resource, reset, dtype=dtype
              )
          )
          dataset = dataset.apply(
              tf.data.experimental.take_while(
                  lambda v: tf.greater(tf.shape(v)[0], 0)
              )
          )
          dataset = dataset.unbatch()
          self._dataset = dataset
          super().__init__(self._dataset._variant_tensor)
  
file_path: io/tensorflow_io/python/ops/ffmpeg_dataset_ops.py
imports: import uuid
  import sys
  import tensorflow
  from tensorflow_io.python.ops import io_dataset_ops
label_desc: Use image node_id 1 to create a new FFmpegVideoGraphIODataset object from inherited base classes: tf.data with example: obj = FFmpegVideoGraphIODataset(resource, dtype, internal)