diff options
author | 2016-05-18 06:59:37 -0800 | |
---|---|---|
committer | 2016-05-18 08:01:22 -0700 | |
commit | 1c7a268a1f4ae3f853fd5de0d4a1909ea0b72814 (patch) | |
tree | d774badd0dab15689e630183995a3364dcebe625 /tensorflow/contrib/ffmpeg/__init__.py | |
parent | dd3b812879671d633ddbb644a48f6fc44faae0bc (diff) |
Updating FFmpeg docs and exposing them to gen_docs.sh.
Change: 122631114
Diffstat (limited to 'tensorflow/contrib/ffmpeg/__init__.py')
-rw-r--r-- | tensorflow/contrib/ffmpeg/__init__.py | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/tensorflow/contrib/ffmpeg/__init__.py b/tensorflow/contrib/ffmpeg/__init__.py index 50c51d615b..b63729574e 100644 --- a/tensorflow/contrib/ffmpeg/__init__.py +++ b/tensorflow/contrib/ffmpeg/__init__.py @@ -12,7 +12,28 @@ # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== -"""Python definitions for ops related to FFmpeg.""" +# pylint: disable=g-short-docstring-punctuation +"""## Encoding and decoding audio using FFmpeg + +TensorFlow provides Ops to decode and encode audio files using the +[FFmpeg](https://www.ffmpeg.org/) library. FFmpeg must be +locally [installed](https://ffmpeg.org/download.html) for these Ops to succeed. + +Example: + +```python +from tensorflow.contrib import ffmpeg + +audio_binary = tf.read_file('song.mp3') +waveform = ffmpeg.decode_audio( + audio_binary, file_format='mp3', samples_per_second=44100, channel_count=2) +uncompressed_binary = ffmpeg.encode_audio( + waveform, file_format='wav', samples_per_second=44100) +``` + +@@decode_audio +@@encode_audio +""" from __future__ import absolute_import from __future__ import division |