Paul B Mahol
bb7bb440c2
avfilter/af_anlmdn: support all options as commands
2020-11-17 13:49:38 +01:00
Paul B Mahol
96f1b45b8c
avfilter/af_anlmdn: allow to change smooth/m at runtime
2020-11-17 12:48:46 +01:00
Andrew Rodland
04340e5e01
lavfi/frei0r: Remove duplicated pix_fmt entry
...
Fixes e.g. 'ffmpeg -i input.mp4 -vf frei0r=pixeliz0r output.mp4':
[Parsed_frei0r_0 @ 0x5585b8093280] Duplicated pixel format
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com >
2020-11-16 19:32:32 +00:00
Paul B Mahol
9f20e5d281
avfilter: add speechnorm filter
2020-11-15 12:59:40 +01:00
Paul B Mahol
ee4a046540
avfilter/af_asoftclip: add oversampling support
2020-11-10 15:25:18 +01:00
Limin Wang
a51767c9b3
avfilter/vf_unsharp: add more pixel format support
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com >
2020-11-07 10:09:59 +08:00
Limin Wang
ee792ebe08
avfilter/vf_unsharp: add 10bit support
...
Signed-off-by: Limin Wang <lance.lmwang@gmail.com >
2020-11-07 10:09:59 +08:00
Paul B Mahol
a125e08130
avfilter: add adenorm filter
2020-11-05 18:26:27 +01:00
Timo Rothenpieler
a1553b0cfb
avfilter/scale_cuda: fix pitch calculation for >8 bit formats
2020-11-05 00:47:14 +01:00
Timo Rothenpieler
09e49ba31e
avfilter/scale_cuda: simplify linesize calculation
2020-11-04 20:00:35 +01:00
Timo Rothenpieler
94cb78ed94
avfilter/scale_cuda: add support for RGB formats
2020-11-04 19:53:41 +01:00
Timo Rothenpieler
9a0b702078
avfilter/scale_cuda: expose optional algorithm parameter
2020-11-04 18:10:19 +01:00
Timo Rothenpieler
cfdddec0c8
avfilter/scale_cuda: add lanczos algorithm
2020-11-04 01:43:21 +01:00
Timo Rothenpieler
4ad7af085c
avfilter/scale_cuda: add nearest neighbour algorithm
2020-11-03 19:58:13 +01:00
Timo Rothenpieler
15c0e038ce
avfilter/scale_cuda: code cleanup
2020-11-03 19:58:13 +01:00
Timo Rothenpieler
f1d0f83712
avfilter/scale_cuda: add bicubic interpolation
2020-11-03 19:58:13 +01:00
Paul B Mahol
112fe0ff19
avfilter/af_asoftclip: add asserts in default switch cases
2020-11-03 12:30:19 +01:00
Paul B Mahol
de63b6fb54
avfitler/af_asoftclip: add hard type
2020-11-03 12:30:19 +01:00
Paul B Mahol
ee686236cd
avfilter/af_asoftclip: add erf soft clip type
2020-11-03 12:30:19 +01:00
Paul B Mahol
2ddd6afd30
avfilter/af_biquads: make commands work reliably within biquad filter
...
Previously changing single coefficient would give unexpected results.
2020-11-02 13:30:14 +01:00
Paul B Mahol
40ce4ad999
avfilter/af_biquads: add lattice-ladder form
2020-11-02 13:30:14 +01:00
Paul B Mahol
c7ece8e26f
avfilter/vf_normalize: fix regression with white/black point calculation
2020-10-27 19:45:51 +01:00
Carl Eugen Hoyos
7b0d179195
lavfi/Makefile: Remove opencl object files when calling make clean.
2020-10-25 21:18:34 +01:00
Paul B Mahol
d6e903b09b
avfilter/vf_v360: make commands always do relative rotation
2020-10-25 12:49:25 +01:00
Paul B Mahol
637c154a50
avfilter: add audio frequency and phase shift filters
2020-10-20 20:38:30 +02:00
Romane Lafon
d60927b676
avfilter/avf_aphasemeter: add out of phase and mono detection
...
Extend aphasemeter to detect out of phase or mono sequences in
stereo streams.
Signed-off-by: Romane Lafon <romane@nomalab.com >
2020-10-20 20:30:45 +02:00
Paul B Mahol
8750c8f45c
avfilter/af_asubboost: use transposed II form
2020-10-20 13:51:45 +02:00
Paul B Mahol
6d59d69bb0
avfilter/af_crossfeed: use transposed II form
2020-10-20 13:51:38 +02:00
Paul B Mahol
5da94413d1
avfilter/af_aiir: remove unused argument
2020-10-19 18:42:42 +02:00
Paul B Mahol
f7379eafd2
avfilter/af_aiir: fix sp2zp mapping
2020-10-19 18:42:42 +02:00
Guo, Yejun
c4a3dbe726
dnn_backend_tf.c: add option sess_config for tf backend
...
TensorFlow C library accepts config for session options to
set different parameters for the inference. This patch exports
this interface.
The config is a serialized tensorflow.ConfigProto proto, so we need
two steps to use it:
1. generate the serialized proto with python (see script example below)
the output looks like: 0xab...cd
where 0xcd is the least significant byte and 0xab is the most significant byte.
2. pass the python script output into ffmpeg with
dnn_processing=options=sess_config=0xab...cd
The following script is an example to specify one GPU. If the system contains
3 GPU cards, the visible_device_list could be '0', '1', '2', '0,1' etc.
'0' does not mean physical GPU card 0, we need to try and see.
And we can also add more opitions here to generate more serialized proto.
script example to generate serialized proto which specifies one GPU:
import tensorflow as tf
gpu_options = tf.GPUOptions(visible_device_list='0')
config = tf.ConfigProto(gpu_options=gpu_options)
s = config.SerializeToString()
b = ''.join("%02x" % int(ord(b)) for b in s[::-1])
print('0x%s' % b)
2020-10-19 20:54:29 +08:00
Paul B Mahol
9860777516
avfilter/af_aiir: remove unused variable
2020-10-18 22:56:23 +02:00
Paul B Mahol
847dc03787
avfilter/af_aiir: add analog transfer function format
2020-10-18 18:48:41 +02:00
Andreas Rheinhardt
6ef55f54fe
avfilter/af_mcompand: Remove redundant calls to AVFilter.uninit
...
uninit is already called automatically (even when configuring the filter
failed).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-10-18 15:30:03 +02:00
Paul B Mahol
f372ce35f2
avfilter/af_aiir: use av_sscanf()
2020-10-17 18:43:47 +02:00
Paul B Mahol
7c1eef48e1
avfilter/af_aiir: reverse order of biquads in serial processing
...
This avoids most of clippings for fixed-point precision inputs.
Also add warning about filtering fixed-point precision with parallel processing.
2020-10-17 18:43:47 +02:00
Paul B Mahol
e704750a9f
avfilter/af_aiir: use transposed II form for biquad sections
2020-10-16 23:07:27 +02:00
Paul B Mahol
0df0e12d02
avfilter/af_aiir: implement parallel processing
2020-10-16 23:07:27 +02:00
Chris Miceli
6bdfea8d4b
libavfilter/dnn/dnn_backend{openvino, tf}: check memory alloc non-NULL
...
These previously would not check that the return value was non-null
meaning it was susceptible to a sigsegv. This checks those values.
2020-10-14 11:08:09 +08:00
Chris Miceli
ad95e5e45d
libavfilter/dnn_backend_native: check mem allocation
...
check that frame allocations return non-null.
2020-10-14 10:19:05 +08:00
leozhang
b9727870ae
avfilter/vf_scale_cuda: unload cuModule on uninit
...
Signed-off-by: leozhang <nowerzt@gmail.com >
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org >
2020-10-12 21:09:21 +02:00
Paul B Mahol
f7fd205f11
avfilter/af_sofalizer: allow up to 64 channels
2020-10-12 12:21:35 +02:00
Paul B Mahol
aa125fd06a
avfilter/af_sofalizer: allow to specify virtual speakers indetifier as number
2020-10-12 12:21:35 +02:00
James Almer
0c73c2909e
avfilter/avfilter.h: add missing FF_API_NEXT wrapper
...
Signed-off-by: James Almer <jamrial@gmail.com >
2020-10-10 23:58:40 -03:00
Andreas Rheinhardt
358c0bb168
avfilter/vf_minterpolate: Remove redundant code for freeing
...
ad73b32d29 added some code for freeing in
the input's config_props function, yet this is unnecessary as uninit is
called anyway if config_props fails.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-10-09 16:38:28 +02:00
Andreas Rheinhardt
aa262dcce8
avfilter/vf_minterpolate: Fix left shift of negative value
...
This has happened when initializing the motion estimation context if
width or height of the video was smaller than the block size used
for motion estimation and if the motion interpolation mode indicates
not to use motion estimation.
The solution is of course to only initialize the motion estimation
context if the interpolation mode uses motion estimation.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-10-09 16:38:28 +02:00
Andreas Rheinhardt
bb13cdbe27
avfilter/vf_minterpolate: Reject too small dimensions
...
The latter code relies upon the dimensions to be not too small;
otherwise one will call av_clip() with min > max lateron which aborts
in case ASSERT_LEVEL is >= 2 or one will get a nonsense result that may
lead to a heap-buffer-overflow/underflow. The latter has happened in
ticket #8248 which this commit fixes.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
2020-10-09 16:38:28 +02:00
Paul B Mahol
a086b73e1f
avfilter/vf_v360: use quaternions for rotation
...
Fixes gimbal lock issues, and round-off errors.
2020-10-07 01:54:05 +02:00
Paul B Mahol
3a035a8cd2
avfilter/vf_v360: fix possible out of range values
2020-10-04 19:23:52 +02:00
Paul B Mahol
eaba6cecfb
avfilter/vf_v360: add mitchell interpolation
2020-10-04 19:23:52 +02:00