FFmpeg git repo
Go to file
Ting Fu 13f5613e68 dnn_backend_native_layer_mathunary: add atan support
It can be tested with the model generated with below python script:

import tensorflow as tf
import numpy as np
import imageio

in_img = imageio.imread('input.jpeg')
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')
x1 = tf.atan(x)
x2 = tf.divide(x1, 3.1416/4) # pi/4
y = tf.identity(x2, 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: Ting Fu <ting.fu@intel.com>
Signed-off-by: Guo Yejun <yejun.guo@intel.com>
2020-06-25 08:41:50 +08:00
compat compat/cuda/ptx2c: remove shell loop; fix BSD sed compat 2020-06-01 22:10:41 -05:00
doc doc/general: mention BT20 decoder 2020-06-23 16:04:31 +02:00
ffbuild common.mak: Also clean Windows debug files. 2020-03-21 18:46:00 +01:00
fftools fftools/ffmpeg_filter: add -autoscale to disable/enable the default scale 2020-06-18 16:31:09 +08:00
libavcodec avcodec/cbs_av1: Simplify writing uvlc elements 2020-06-24 15:56:24 +02:00
libavdevice lavdevice: Add AudioToolbox output device. 2020-06-15 15:09:33 +02:00
libavfilter dnn_backend_native_layer_mathunary: add atan support 2020-06-25 08:41:50 +08:00
libavformat avformat/smoothstreaming: Forward errors from copying white/blacklists 2020-06-24 16:07:38 +02:00
libavresample
libavutil lavu/internal: Fix comment for avpriv_dict_set_timestamp 2020-06-14 12:27:10 +08:00
libpostproc Bump minor versions after branching 4.3 2020-06-08 22:49:04 +02:00
libswresample Bump minor versions after branching 4.3 2020-06-08 22:49:04 +02:00
libswscale swscale: cosmetic fixes 2020-06-14 16:34:07 +01:00
presets
tests dnn-layer-math-unary-test: add unit test for acos 2020-06-25 08:41:50 +08:00
tools dnn_backend_native_layer_mathunary: add atan support 2020-06-25 08:41:50 +08:00
.gitattributes
.gitignore
.mailmap mailmap: add entry for myself 2020-06-17 22:11:34 +08:00
.travis.yml
Changelog avformat: add MCC demuxer 2020-06-18 21:31:13 +02:00
configure lavdevice: Add AudioToolbox output device. 2020-06-15 15:09:33 +02:00
CONTRIBUTING.md
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
INSTALL.md
LICENSE.md
MAINTAINERS oggdec: remove the oggparsedaala subdemuxer 2020-05-23 19:07:20 +01:00
Makefile
README.md
RELEASE RELEASE: We are after the 4.3 branch point, update for that 2020-06-10 00:20:24 +02:00

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.