Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
32eaf406
Commit
32eaf406
authored
Oct 07, 2021
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: add limitdiff video filter
parent
73fe19f0
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
405 additions
and
1 deletion
+405
-1
Changelog
Changelog
+1
-0
filters.texi
doc/filters.texi
+31
-0
Makefile
libavfilter/Makefile
+1
-0
allfilters.c
libavfilter/allfilters.c
+1
-0
version.h
libavfilter/version.h
+1
-1
vf_limitdiff.c
libavfilter/vf_limitdiff.c
+370
-0
No files found.
Changelog
View file @
32eaf406
...
...
@@ -26,6 +26,7 @@ version <next>:
- GEM Raster image decoder
- asdr audio filter
- speex decoder
- limitdiff video filter
version 4.4:
...
...
doc/filters.texi
View file @
32eaf406
...
...
@@ -14488,6 +14488,37 @@ ffmpeg -i main.mpg -i ref.mkv -lavfi "[0:v]settb=AVTB,setpts=PTS-STARTPTS[main];
@end example
@end itemize
@section limitdiff
Apply limited difference filter using second and optionally third video stream.
The filter accepts the following options:
@table @option
@item threshold
Set the threshold to use when allowing certain differences between video streams.
Any absolute difference value lower or exact than this threshold will pick pixel components from
first video stream.
@item elasticity
Set the elasticity of soft thresholding when processing video streams.
This value multiplied with first one sets second threshold.
Any absolute difference value greater or exact than second threshold will pick pixel components
from second video stream. For values between those two threshold
linear interpolation between first and second video stream will be used.
@item reference
Enable the reference (third) video stream processing. By default is disabled.
If set, this video stream will be used for calculating absolute difference with first video
stream.
@item planes
Specify which planes will be processed. Defaults to all available.
@end table
@subsection Commands
This filter supports the all above options as @ref{commands} except option @samp{reference}.
@section limiter
Limits the pixel components values to the specified range [min, max].
...
...
libavfilter/Makefile
View file @
32eaf406
...
...
@@ -323,6 +323,7 @@ OBJS-$(CONFIG_LATENCY_FILTER) += f_latency.o
OBJS-$(CONFIG_LENSCORRECTION_FILTER)
+=
vf_lenscorrection.o
OBJS-$(CONFIG_LENSFUN_FILTER)
+=
vf_lensfun.o
OBJS-$(CONFIG_LIBVMAF_FILTER)
+=
vf_libvmaf.o
framesync.o
OBJS-$(CONFIG_LIMITDIFF_FILTER)
+=
vf_limitdiff.o
framesync.o
OBJS-$(CONFIG_LIMITER_FILTER)
+=
vf_limiter.o
OBJS-$(CONFIG_LOOP_FILTER)
+=
f_loop.o
OBJS-$(CONFIG_LUMAKEY_FILTER)
+=
vf_lumakey.o
...
...
libavfilter/allfilters.c
View file @
32eaf406
...
...
@@ -308,6 +308,7 @@ extern const AVFilter ff_vf_latency;
extern
const
AVFilter
ff_vf_lenscorrection
;
extern
const
AVFilter
ff_vf_lensfun
;
extern
const
AVFilter
ff_vf_libvmaf
;
extern
const
AVFilter
ff_vf_limitdiff
;
extern
const
AVFilter
ff_vf_limiter
;
extern
const
AVFilter
ff_vf_loop
;
extern
const
AVFilter
ff_vf_lumakey
;
...
...
libavfilter/version.h
View file @
32eaf406
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFILTER_VERSION_MAJOR 8
#define LIBAVFILTER_VERSION_MINOR 1
2
#define LIBAVFILTER_VERSION_MINOR 1
3
#define LIBAVFILTER_VERSION_MICRO 100
...
...
libavfilter/vf_limitdiff.c
0 → 100644
View file @
32eaf406
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment