W3cubDocs

/TensorFlow Python

tf.contrib.ffmpeg.decode_video

tf.contrib.ffmpeg.decode_video(contents)

Defined in tensorflow/contrib/ffmpeg/ffmpeg_ops.py.

Create an op that decodes the contents of a video file.

Args:

  • contents: The binary contents of the video file to decode. This is a scalar.

Returns:

A rank-4 Tensor that has [frames, height, width, 3] RGB as output.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/ffmpeg/decode_video