class_docstr: FFmpegIODataset
class_docstr_tok: ["FFmpegIODataset"]
docstr: FFmpegIODataset.
docstr_tok: ["FFmpegIODataset","."]
code: def __init__(self, filename, stream, internal=True):
      """FFmpegIODataset."""
      with tf.name_scope("FFmpegIODataset") as scope:
          from tensorflow_io.python.ops import (  # pylint: disable=import-outside-toplevel
              ffmpeg_ops,
          )
  
          resource, _ = ffmpeg_ops.io_ffmpeg_readable_init(
              filename,
              container=scope,
              shared_name=f"{filename}/{uuid.uuid4().hex}",
          )
          shape, dtype, _ = ffmpeg_ops.io_ffmpeg_readable_spec(
              resource, stream
          )
          shape = tf.TensorShape(
              [None if e < 0 else e for e in shape.numpy()]
          )
          dtype = tf.as_dtype(dtype.numpy())
          capacity = 1 if stream.startswith("v:") else 4096
          super().__init__(
              _FFmpegIODatasetFunction(
                  ffmpeg_ops.io_ffmpeg_readable_read,
                  resource,
                  stream,
                  shape,
                  dtype,
              ),
              capacity=capacity,
              internal=internal,
          )
  
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 FFmpegIODataset object from inherited base classes: io_dataset_ops with example: obj = FFmpegIODataset(filename, stream, internal)