Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-11-08avfilter/Makefile: add missing framesync dependency to bm3d & mix filtersLou Logan
Signed-off-by: Lou Logan <lou@lrcd.com>
2019-11-08avfilter/vf_dnn_processing: correct duplicate statementleozhang
Signed-off-by: leozhang <leozhang@qiyi.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-08avfilter/vf_dnn_processing: fix fate-sourceGuo, Yejun
Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-11-08avfilter/f_metadata: remove unneeded codeLimin Wang
Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2019-11-07avfilter/vf_dnn_processing: add a generic filter for image proccessing with ↵Guo, Yejun
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-01avfilter/vf_lut3d: simplify codeLimin Wang
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-10-31avfilter/vf_median: add radiusV optionPaul B Mahol
2019-10-31avfilter/af_afade: start crossfading only when first stream reached endPaul B Mahol
2019-10-30avfilter/af_afade: check for eof after crossfade laterPaul B Mahol
Fixes memleaks and #8346
2019-10-30avfilter/f_sidedata: fix Wtautological-constant-out-of-range-compareZhao Zhili
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-30avfilter/vf_sr: correct flags since the filter changes frame w/hGuo, Yejun
If filter changes frame w/h, AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC cannot be supported. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-30avfilter/dnn: add a new interface to query dnn model's input infoGuo, Yejun
to support dnn networks more general, we need to know the input info of the dnn model. background: The data type of dnn model's input could be float32, uint8 or fp16, etc. And the w/h of input image could be fixed or variable. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-30avfilter/dnn: get the data type of network output from dnn execution resultGuo, Yejun
so, we can make a filter more general to accept different network models, by adding a data type convertion after getting data from network. After we add dt field into struct DNNData, it becomes the same as DNNInputData, so merge them with one struct: DNNData. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-30dnn: add tf.nn.conv2d support for native modelGuo, Yejun
Unlike other tf.*.conv2d layers, tf.nn.conv2d does not create many nodes (within a scope) in the graph, it just acts like other layers. tf.nn.conv2d only creates one node in the graph, and no internal nodes such as 'kernel' are created. The format of native model file is also changed, a flag named has_bias is added, so change the version number. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
2019-10-29avfilter/asrc_anoisesrc: change color variable to intLimin Wang
Or it'll cause invalid color and s->filter is NULL. Please reproduce it with below command on big endian system: $ ./ffmpeg -f lavfi -i "anoisesrc=d=60:c=1:r=48000" -f s16le -c:a pcm_s16le -f null - Segmentation fault (core dumped) 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-10-29avfilter/vf_vfrdet: also report average deltaPaul B Mahol
2019-10-29avfilter/vf_vfrdet: fix reporting max deltaPaul B Mahol
If only first delta was big it was previously discarded.
2019-10-29avfilter: add median filterPaul B Mahol
2019-10-26avfilter/avf_showfreqs: free input frame after using itJames Almer
Fixes ticket #8336. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2019-10-26avfilter/vsrc_testsrc: increase max level of haldclutsrcPaul B Mahol
So it matches lut3d and haldclut filter.
2019-10-26avfilter/vf_lut3d: increase max level to upper limit defined by cube format ↵Paul B Mahol
specification
2019-10-26avfilter/vf_lut3d: allocate 3d lut dynamicallyPaul B Mahol
2019-10-25avfilter/vf_psnr,vf_ssim: add warning if different timebases are encounteredPaul B Mahol
2019-10-24avfilter: add maskedmin/maskedmax filtersPaul B Mahol
2019-10-23avfilter/vf_maskedclamp: add x86 SIMDPaul B Mahol
2019-10-23avfilter/settb: switch to activatePaul B Mahol
Now correctly updates EOF timestamp.
2019-10-23avfilter/vf_floodfill: better fix for crashPaul B Mahol
2019-10-23avfilter/vf_floodfill: add more gray formatsPaul B Mahol
2019-10-23avfilter/vf_deband: add more gray formatsPaul B Mahol
2019-10-23lavfi/bilateral: Clean the option description and unused codeJun Zhao
Clean the option description and unused code. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-10-23avfilter/vf_lut2: fix typo, correctly support gray14Paul B Mahol
2019-10-23avfilter/vf_bm3d: add gray14 formatPaul B Mahol
2019-10-23avfilter/vf_vaguedenoiser: add more gray formatsPaul B Mahol
2019-10-22avfilter/transpose: add missing headersPaul B Mahol
2019-10-22x86/vf_transpose: make ff_transpose_8x8_16_sse2 work on x86_32James Almer
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2019-10-22avfilter/vf_maskedclamp: rewrite using macroPaul B Mahol
2019-10-22avfilter/vf_premultiply: fix signed integer overflowPaul B Mahol
Fixes #8324
2019-10-21avfilter/vsrc_mptestsrc: simplify the code and change the type of frameLimin Wang
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-21avfilter/vsrc_mptestsrc: add options to set the maximum number of framesLimin Wang
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-21avfilter/vf_unsharp: rename config_props -> config_input, link -> inlinkLimin Wang
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-10-21x86/vf_transpose: fix cpuflags checkJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2019-10-21avfilter/vf_transpose: add x86 SIMDPaul B Mahol
2019-10-21avfilter/x86/vf_atadenoise: fix commentPaul B Mahol
2019-10-21avfilter/af_join: fix possible memory leaksPaul B Mahol
Allocation of input frames is independent from allocation of new input pads.
2019-10-21avfilter/af_silencedetect: change mono default to integer literalLimin Wang
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro>
2019-10-21avfilter/af_silencedetect: use AV_OPT_TYPE_DURATIONLimin Wang
Reviewed-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2019-10-21avfilter: add bilateral filterPaul B Mahol
Signed-off-by: Paul B Mahol <onemda@gmail.com>
2019-10-21avfilter/vf_nlmeans: round values toward nearest integerPaul B Mahol
Instead of rounding toward zero and thus producing darker output.
2019-10-21avfilter/af_silencedetect: document metadataLimin Wang
Reviewed-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2019-10-20avfilter/vf_tile: fix memory leakPaul B Mahol
Fixes #8313