FFmpeg git repo
Go to file
Guo, Yejun ef79408e97 dnn/native: add native support for 'mul'
it can be tested with model file generated from above python script:

import tensorflow as tf
import numpy as np
import imageio

in_img = imageio.imread('input.jpg')
in_img = in_img.astype(np.float32)/255.0
in_data = in_img[np.newaxis, :]

x = tf.placeholder(tf.float32, shape=[1, None, None, 3], name='dnn_in')
z1 = 0.5 + 0.3 * x
z2 = z1 * 4
z3 = z2 - x - 2.0
y = tf.identity(z3, name='dnn_out')

sess=tf.Session()
sess.run(tf.global_variables_initializer())

graph_def = tf.graph_util.convert_variables_to_constants(sess, sess.graph_def, ['dnn_out'])
tf.train.write_graph(graph_def, '.', 'image_process.pb', as_text=False)

print("image_process.pb generated, please use \
path_to_ffmpeg/tools/python/convert.py to generate image_process.model\n")

output = sess.run(y, feed_dict={x: in_data})
imageio.imsave("out.jpg", np.squeeze(output))

Signed-off-by: Guo, Yejun <yejun.guo@intel.com>
2020-04-22 13:14:47 +08:00
compat
doc avformat/mpegtsenc: use standard pids for m2ts 2020-04-21 21:28:29 +02:00
ffbuild
fftools cmdutils: stop using deprecated av_codec_next() 2020-04-20 14:50:03 +00:00
libavcodec avcodec/pngdec: Pass ret from decode_iccp_chunk() 2020-04-20 20:38:41 +02:00
libavdevice avdevice/opengl: add support of wrapped avframe codec 2020-04-16 23:52:12 +02:00
libavfilter dnn/native: add native support for 'mul' 2020-04-22 13:14:47 +08:00
libavformat lavf/tls_mbedtls: fix resource leak 2020-04-22 12:41:29 +08:00
libavresample
libavutil hwcontext_vulkan: correctly download and upload flipped images 2020-04-21 19:00:51 +01:00
libpostproc
libswresample
libswscale swscale: aarch64: Don't clobber callee-saved registers v8-v15 2020-04-21 23:41:13 +03:00
presets
tests dnn-layer-mathbinary-test: add unit test for add 2020-04-22 13:14:39 +08:00
tools dnn/native: add native support for 'mul' 2020-04-22 13:14:47 +08:00
.gitattributes
.gitignore
.mailmap
.travis.yml
Changelog avformat/mpegtsenc: use the correct stream_types and write HDMV descriptors for m2ts 2020-04-21 21:28:42 +02:00
configure configure: add MLP parser as dependency to MLP and TrueHD demuxers 2020-04-19 15:58:45 -03:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS
Makefile
README.md
RELEASE

FFmpeg README

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides a mean to alter decoded Audio and Video through chain of filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Coding examples are available in the doc/examples directory.

License

FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process and will be ignored.