Home | History | Annotate | only in /external/tensorflow/tensorflow/contrib/ffmpeg
Up to higher level directory
NameDateSize
__init__.py21-Aug-20181.4K
BUILD21-Aug-20184.4K
decode_audio_op.cc21-Aug-201811.9K
decode_audio_op_test.py21-Aug-20188.8K
decode_video_op.cc21-Aug-20184.4K
decode_video_op_test.py21-Aug-20182.4K
default/21-Aug-2018
encode_audio_op.cc21-Aug-20189.4K
encode_audio_op_test.py21-Aug-20184.1K
ffmpeg_lib.h21-Aug-20182.6K
ffmpeg_ops.py21-Aug-20184.4K
README.md21-Aug-2018918
testdata/21-Aug-2018

README.md

      1 # FFmpeg TensorFlow integration
      2 
      3 Decoding audio files can be done using a new op that uses
      4 [FFmpeg](http://www.ffmpeg.org) to convert various audio file formats into
      5 tensors.
      6 
      7 tf.audio.decode_audio accepts MP3, WAV, and OGG file formats.
      8 
      9 FFmpeg must be installed before these ops can be used. The ops will look for the
     10 ffmpeg binary somewhere in `$PATH`. When the binary is unavailable, the error
     11 `FFmpeg must be installed to run this op. FFmpeg can be found at
     12 http://www.ffmpeg.org.` will be returned.
     13 
     14 ## Testing
     15 
     16 In addition to the regular tests, the integration tests should also be
     17 run on this code. First, install `docker`. Then run the integration tests:
     18 
     19 ```shell
     20 export TF_BUILD_CONTAINER_TYPE=CPU  # or GPU
     21 export TF_BUILD_PYTHON_VERSION=PYTHON2  # or PYTHON3
     22 export TF_BUILD_IS_OPT=OPT
     23 export TF_BUILD_IS_PIP=PIP
     24 export TF_BUILD_INTEGRATION_TESTS=1
     25 tensorflow/tools/ci_build/ci_parameterized_build.sh
     26 ```
     27