summaryrefslogtreecommitdiff
path: root/libavfilter
Commit message (Collapse)AuthorAge
* avfilter/af_anequalizer: check if frame clone is setPaul B Mahol2020-01-14
|
* avfilter/af_aiir: check if frame clone is setPaul B Mahol2020-01-14
|
* avfilter/af_afir: check if frame clone is setPaul B Mahol2020-01-14
|
* avfilter/avf_avectorscope: check if clone frame is setPaul B Mahol2020-01-14
|
* lavfi/dnn_processing: refine code to use function av_image_copy_plane for ↵Guo, Yejun2020-01-14
| | | | | | | data copy Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
* avfilter/f_drawgraph: add rate/r optionPaul B Mahol2020-01-14
|
* lavfi/volume: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/zscale: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/firequalizer: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/eq: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/rotate: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/streamselect: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/scale: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/hue: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/crop: enable runtime change flagJun Zhao2020-01-13
| | | | | | enable runtime change flag. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/spp: enable runtime change flagJun Zhao2020-01-13
| | | | | | | enable runtime change flag. Reviewe-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/spp: add "quality" option in runtime change pathJun Zhao2020-01-13
| | | | | | | | | it's stranage to use option "level" in runtime change path but used "quality" in option, add "quality" in runtime change path, it's more intuitive and keep the "level" for compatibility. Reviewe-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avfilter: add freezeframes video filterPaul B Mahol2020-01-11
|
* avfilter/af_dynaudnorm: use better limits for maximal amplificationPaul B Mahol2020-01-11
| | | | Fixes regression in smoothness of amplification.
* avfilter/af_amix: change the max range of the number of inputsLimin Wang2020-01-11
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avfilter/vf_mix: change the max range of the number of inputsLimin Wang2020-01-11
| | | | Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
* avfilter/vf_showinfo: fix the integer handling issuesLimin Wang2020-01-10
| | | | | | | Fixes CID 1457606 and 1457607 Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/f_metadata: allow direct flushing when printing to fileGyan Doshi2020-01-10
| | | | Useful for monitoring sparse data in realtime
* avfilter/af_afir: add support for switching impulse response streams at runtimePaul B Mahol2020-01-10
| | | | Currently, switching is not free of artifacts, to be resolved later.
* avfilter/af_afir: add support for even smaller partition sizesPaul B Mahol2020-01-10
|
* avfilter/af_afir: split input frames from impulse response framesPaul B Mahol2020-01-10
|
* avfilter/aformat: add shorthand names for optionsGyan Doshi2020-01-08
|
* vf_dnn_processing: add support for more formats gray8 and grayf32Guo, Yejun2020-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following is a python script to halve the value of the gray image. 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 from skimage import color from skimage import io in_img = io.imread('input.jpg') in_img = color.rgb2gray(in_img) io.imsave('ori_gray.jpg', np.squeeze(in_img)) in_data = np.expand_dims(in_img, axis=0) in_data = np.expand_dims(in_data, axis=3) filter_data = np.array([0.5]).reshape(1,1,1,1).astype(np.float32) filter = tf.Variable(filter_data) x = tf.placeholder(tf.float32, shape=[1, None, None, 1], 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()) graph_def = tf.graph_util.convert_variables_to_constants(sess, sess.graph_def, ['dnn_out']) tf.train.write_graph(graph_def, '.', 'halve_gray_float.pb', as_text=False) print("halve_gray_float.pb generated, please use \ path_to_ffmpeg/tools/python/convert.py to generate halve_gray_float.model\n") output = sess.run(y, feed_dict={x: in_data}) output = output * 255.0 output = output.astype(np.uint8) io.imsave("out.jpg", np.squeeze(output)) To do the same thing with ffmpeg: - generate halve_gray_float.pb with the above script - generate halve_gray_float.model with tools/python/convert.py - try with following commands ./ffmpeg -i input.jpg -vf format=grayf32,dnn_processing=model=halve_gray_float.model:input=dnn_in:output=dnn_out:dnn_backend=native out.native.png ./ffmpeg -i input.jpg -vf format=grayf32,dnn_processing=model=halve_gray_float.pb:input=dnn_in:output=dnn_out:dnn_backend=tensorflow out.tf.png Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
* vf_dnn_processing: remove parameter 'fmt'Guo, Yejun2020-01-07
| | | | | | | | | | | | do not request AVFrame's format in vf_ddn_processing with 'fmt', but to add another filter for the format. command examples: ./ffmpeg -i input.jpg -vf format=bgr24,dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:dnn_backend=native -y out.native.png ./ffmpeg -i input.jpg -vf format=rgb24,dnn_processing=model=halve_first_channel.model:input=dnn_in:output=dnn_out:dnn_backend=native -y out.native.png Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
* avfilter/vf_showinfo: Fix erroneous results for mean and stdev with pixel ↵Limin Wang2020-01-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bits >8 Have tested with be and le pixel format on be and le system for >8bit. System: lmwang@ubuntu:~/ffmpeg.git.mips$ grep HAVE_BIGENDIAN config.h ffmpeg.git git:(showinfo) ✗ grep HAVE_BIGENDIAN config.h Test result: 1, yuv420p ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p,showinfo Master: mean:[16 128 128] stdev:[0.0 0.0 0.0] After applied the patch: mean:[16 128 128] stdev:[0.0 0.0 0.0] 2, yuv420p10le ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p10le,showinfo Master: mean:[32 1 1] stdev:[32.0 1.0 1.0] After applied the patch: mean:[64 512 512] stdev:[0.0 0.0 0.0] 3, yuv420p10be ./ffmpeg -f lavfi -i color=black:duration=1:r=1:size=1280x720,format=yuv420p10be,showinfo Master: mean:[32 1 1] stdev:[32.0 1.0 1.0] After applied the patch: mean:[64 512 512] stdev:[0.0 0.0 0.0] Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vf_tonemap_vaapi: Fix memory leak in error caseMark Thompson2020-01-07
| | | | Fixes CID 1457236.
* Silence "string-plus-int" warning shown by clang.Carl Eugen Hoyos2020-01-06
| | | | libswscale/utils.c:89:42: warning: adding 'unsigned long' to a string does not append to the string [-Wstring-plus-int]
* avfilter/af_sidechaincompress: add support for commandsPaul B Mahol2020-01-06
|
* avfilter/af_dynaudnorm: add support for commandsPaul B Mahol2020-01-06
|
* avfilter/af_dynaudnorm: use already available pointerPaul B Mahol2020-01-05
| | | | Instead of dereferencing same thing again.
* avfilter/af_dynaudnorm: move channels variable setup firstPaul B Mahol2020-01-05
|
* lavfi/buffersrc: Remove redundant free after ff_filter_frame() failureJun Zhao2020-01-04
| | | | | | | | | ff_filter_frame() always frees the frame in case of error, so we don't need to free the frame after ff_filter_frame() fails. Fix CID 1457230. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avfilter/af_dynaudnorm: fix another clipping with custom peak valuePaul B Mahol2020-01-04
| | | | | This always happened at start with alternative boundary mode disabled. The clipping only occurred if starting samples where high enough.
* avfilter/af_dynaudnorm: implement threshold optionPaul B Mahol2020-01-04
|
* avfilter/af_dynaudnorm: do not clip audioPaul B Mahol2020-01-04
| | | | | | Clipping can happen when smoothed gain is higher than maximum allowed gain factor for current frame and peak value option is set to enough low value.
* lavfi/coreimage: fix memory leak after av_dict_parse_string failJun Zhao2020-01-04
| | | | | | | | In case of failure, all the successfully set entries are stored in *pm. We need to manually free the created dictionary to avoid memory leak. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avfilter/af_dynaudnorm: fix previous commitPaul B Mahol2020-01-02
| | | | We still need to analyze frame for amplification at EOF.
* avfilter/af_dynaudnorm: do not enqueue flush buffersPaul B Mahol2020-01-02
|
* avfilter/af_dynaudnorm: do not hang forever if only EOF is receivedPaul B Mahol2020-01-01
|
* avfilter/af_dynaudnorm: do not error out if even filter size was givenPaul B Mahol2020-01-01
| | | | Instead issue a warning and make filter size odd number.
* avfilter/vf_histogram: add envelope to thistogram filterPaul B Mahol2019-12-30
|
* avfilter/buffersrc: deprecate sws_param optionZhao Zhili2019-12-30
|
* avfilter/af_crystalizer: add support for commandsPaul B Mahol2019-12-29
|
* avfilter/af_crystalizer: add timeline supportPaul B Mahol2019-12-29
|
* avfilter/vf_waveform: add support for 12bit yuva formatsPaul B Mahol2019-12-29
|