Paul B Mahol
2f7da8ca36
avfilter/vf_limiter: add 12bit yuva formats
2019-11-18 18:35:32 +01:00
Paul B Mahol
4670f8126a
avfilter/vf_fillborders: add 12bit yuva formats
2019-11-18 18:35:32 +01:00
Paul B Mahol
9277510766
avfilter/vf_premultiply: add support for 12bit yuva format
2019-11-18 18:35:32 +01:00
Paul B Mahol
a960d33112
avfilter/vf_chromashift: add 12bit yuva formats
2019-11-18 18:35:32 +01:00
Paul B Mahol
39a4d69d05
avfilter/vf_midequalizer: add 12bit yuva formats
2019-11-18 18:08:13 +01:00
Paul B Mahol
ee8fe9c94d
avfilter/vf_convolution: add 12bit yuva formats
2019-11-18 18:01:12 +01:00
Paul B Mahol
4b554382a0
avfilter/vf_neighbor: add 12bit yuva formats
2019-11-18 18:00:25 +01:00
Paul B Mahol
37bf725296
avfilter/vf_maskedminmax: add 12bit yuva formats
2019-11-18 17:56:34 +01:00
Paul B Mahol
be8487798a
avfilter/vf_maskedmerge: add 12bit yuva formats
2019-11-18 17:55:21 +01:00
Paul B Mahol
b565d63894
avfilter/vf_maskedclamp: add 12bit yuva formats
2019-11-18 17:53:45 +01:00
Paul B Mahol
69f5a77dec
avfilter/vf_scroll: add support for 12bit yuva formats
2019-11-18 17:50:05 +01:00
Paul B Mahol
c7abb07331
avfilter/vf_blend: add 12bit yuva formats
2019-11-18 17:47:35 +01:00
Paul B Mahol
619f530812
avfilter/vf_vaguedenoiser: add support for alpha formats
2019-11-18 17:44:10 +01:00
Paul B Mahol
76ef2ec471
avfilter/vf_bm3d: use boolean for ref option
2019-11-18 17:39:45 +01:00
Paul B Mahol
cb844376c3
avfilter/vf_fftdnoiz: add support for alpha formats
2019-11-18 17:36:56 +01:00
Paul B Mahol
3e524a11d9
avfilter/vf_bm3d: add support for alpha formats
2019-11-18 17:33:19 +01:00
Paul B Mahol
86f636348c
avfilter/vf_w3fdif: add support for more >8 bit alpha formats
2019-11-18 17:30:44 +01:00
Paul B Mahol
6a38538a09
avfilter/vf_avgblur: add support for 12bit yuva formats
2019-11-18 17:27:42 +01:00
Paul B Mahol
1b26f27026
avfilter/vf_gblur: add support for 12bit yuva formats
2019-11-18 17:26:59 +01:00
Paul B Mahol
97cf49b7fe
avfilter/vf_median: add support for 12bit yuva formats
2019-11-18 17:24:52 +01:00
Paul B Mahol
f490c71553
avfilter/vf_remap: add support for 12bit yuva format
2019-11-18 17:21:09 +01:00
Paul B Mahol
410f81f822
avfilter/vf_lut2: add 12bit depth alpha formats
2019-11-18 17:15:29 +01:00
Paul B Mahol
a50bd3a50e
avfilter/vf_atadenoise: support alpha formats
2019-11-18 17:06:59 +01:00
Paul B Mahol
73b730e3e6
avfilter/vf_xmedian: add support for alpha formats
2019-11-18 17:06:05 +01:00
Paul B Mahol
315a4496ea
avfilter/f_loop: switch aloop to activate
2019-11-17 16:20:58 +01:00
Paul B Mahol
2e7ccd493a
avfilter/f_loop: fix pts handling when timebase and 1/samplerate differ
2019-11-17 16:19:07 +01:00
Paul B Mahol
f7ad9a6c16
avfilter/af_sidechaincompress: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:30:10 +01:00
Paul B Mahol
b66acf4a34
avfilter/af_anlmdn: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:25:54 +01:00
Paul B Mahol
0a17a30150
avfilter/af_agate: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:23:48 +01:00
Paul B Mahol
115537f487
avfilter/af_afftdn: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:21:10 +01:00
Paul B Mahol
c588a0f528
avfilter/af_afftfilt: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:19:39 +01:00
Paul B Mahol
7db61bf0e3
avfilter/af_adeclick: fix pts handling when timebase and 1/samplerate differ
2019-11-17 12:17:51 +01:00
Paul B Mahol
90622f9e8f
avfilter/af_aecho: switch to activate
2019-11-17 11:57:52 +01:00
Paul B Mahol
9498ce0c23
avfilter/vf_framepack: really fix ef466a8b29
2019-11-17 00:23:03 +01:00
Paul B Mahol
9db24ee26d
avfilter/vf_framepack: switch to activate
2019-11-17 00:23:03 +01:00
Paul B Mahol
ef466a8b29
avfilter/vf_framepack: fix timestamps for frameseq format
2019-11-16 23:33:02 +01:00
Paul B Mahol
d52342a563
avfilter/vf_framepack: add missing filtering flag
2019-11-16 23:33:02 +01:00
Paul B Mahol
45f03cdd20
avfilter/vf_colorbalance: add support for commands
2019-11-13 13:07:42 +01:00
Paul B Mahol
bffd0f7b69
avfilter/vf_colorbalance: switch to floats
2019-11-13 13:07:42 +01:00
Paul B Mahol
d19fdc83b3
avfilter/vf_colorbalance: add option to preserve lightness
2019-11-13 13:07:42 +01:00
Paul B Mahol
08c46e40fb
avfilter/vF_colorbalance: rewrite, fixes filtering
2019-11-13 00:22:13 +01:00
Lou Logan
007e03348d
avfilter/Makefile: add missing framesync dependency to bm3d & mix filters
...
Signed-off-by: Lou Logan <lou@lrcd.com >
2019-11-08 09:37:31 -09:00
leozhang
c79307b7de
avfilter/vf_dnn_processing: correct duplicate statement
...
Signed-off-by: leozhang <leozhang@qiyi.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-11-08 14:57:01 +01:00
Guo, Yejun
f6e942251c
avfilter/vf_dnn_processing: fix fate-source
...
Signed-off-by: Guo, Yejun <yejun.guo@intel.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-11-08 14:56:38 +01:00
Limin Wang
81271b3cce
avfilter/f_metadata: remove unneeded code
...
Reviewed-by: Steven Liu <lq@onvideo.cn >
Signed-off-by: Limin Wang <lance.lmwang@gmail.com >
2019-11-08 22:25:10 +09:00
Guo, Yejun
4d980a8ceb
avfilter/vf_dnn_processing: add a generic filter for image proccessing with dnn networks
...
This filter accepts all the dnn networks which do image processing.
Currently, frame with formats rgb24 and bgr24 are supported. Other
formats such as gray and YUV will be supported next. The dnn network
can accept data in float32 or uint8 format. And the dnn network can
change frame size.
The following is a python script to halve the value of the first
channel of the pixel. It demos how to setup and execute dnn model
with python+tensorflow. It also generates .pb file which will be
used by ffmpeg.
import tensorflow as tf
import numpy as np
import imageio
in_img = imageio.imread('in.bmp')
in_img = in_img.astype(np.float32)/255.0
in_data = in_img[np.newaxis, :]
filter_data = np.array([0.5, 0, 0, 0, 1., 0, 0, 0, 1.]).reshape(1,1,3,3).astype(np.float32)
filter = tf.Variable(filter_data)
x = tf.placeholder(tf.float32, shape=[1, None, None, 3], name='dnn_in')
y = tf.nn.conv2d(x, filter, strides=[1, 1, 1, 1], padding='VALID', name='dnn_out')
sess=tf.Session()
sess.run(tf.global_variables_initializer())
output = sess.run(y, feed_dict={x: in_data})
graph_def = tf.graph_util.convert_variables_to_constants(sess, sess.graph_def, ['dnn_out'])
tf.train.write_graph(graph_def, '.', 'halve_first_channel.pb', as_text=False)
output = output * 255.0
output = output.astype(np.uint8)
imageio.imsave("out.bmp", np.squeeze(output))
To do the same thing with ffmpeg:
- generate halve_first_channel.pb with the above script
- generate halve_first_channel.model with tools/python/convert.py
- try with following commands
./ffmpeg -i input.jpg -vf dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:fmt=rgb24:dnn_backend=native -y out.native.png
./ffmpeg -i input.jpg -vf dnn_processing=model=halve_first_channel.pb:input=dnn_in:output=dnn_out:fmt=rgb24:dnn_backend=tensorflow -y out.tf.png
Signed-off-by: Guo, Yejun <yejun.guo@intel.com >
Signed-off-by: Pedro Arthur <bygrandao@gmail.com >
2019-11-07 15:46:00 -03:00
Limin Wang
99fc5059fb
avfilter/vf_lut3d: simplify code
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com >
Reviewed-by: Paul B Mahol <onemda@gmail.com >
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2019-11-01 14:43:16 +01:00
Paul B Mahol
b414cff630
avfilter/vf_median: add radiusV option
2019-10-31 10:32:43 +01:00
Paul B Mahol
86a42e954e
avfilter/af_afade: start crossfading only when first stream reached end
2019-10-31 10:23:59 +01:00
Paul B Mahol
89389b7ed4
avfilter/af_afade: check for eof after crossfade later
...
Fixes memleaks and #8346
2019-10-30 19:07:19 +01:00