Skip to content

Commit 148c8e8

Browse files
ashishps1rbultje
authored andcommitted
avfilter: add vmafmotion filter
Signed-off-by: Ashish Singh <[email protected]> Signed-off-by: Ronald S. Bultje <[email protected]>
1 parent 450cee5 commit 148c8e8

File tree

6 files changed

+440
-0
lines changed

6 files changed

+440
-0
lines changed

Changelog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ version <next>:
5151
- CUDA thumbnail filter
5252
- V4L2 mem2mem HW assisted codecs
5353
- Rockchip MPP hardware decoding
54+
- vmafmotion video filter
5455

5556

5657
version 3.3:

doc/filters.texi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15570,6 +15570,20 @@ vignette='PI/4+random(1)*PI/50':eval=frame
1557015570

1557115571
@end itemize
1557215572

15573+
@section vmafmotion
15574+
15575+
Obtain the average vmaf motion score of a video.
15576+
It is one of the component filters of VMAF.
15577+
15578+
The obtained average motion score is printed through the logging system.
15579+
15580+
In the below example the input file @file{ref.mpg} is being processed and score
15581+
is computed.
15582+
15583+
@example
15584+
ffmpeg -i ref.mpg -lavfi vmafmotion -f null -
15585+
@end example
15586+
1557315587
@section vstack
1557415588
Stack input videos vertically.
1557515589

libavfilter/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ OBJS-$(CONFIG_VFLIP_FILTER) += vf_vflip.o
331331
OBJS-$(CONFIG_VIDSTABDETECT_FILTER) += vidstabutils.o vf_vidstabdetect.o
332332
OBJS-$(CONFIG_VIDSTABTRANSFORM_FILTER) += vidstabutils.o vf_vidstabtransform.o
333333
OBJS-$(CONFIG_VIGNETTE_FILTER) += vf_vignette.o
334+
OBJS-$(CONFIG_VMAFMOTION_FILTER) += vf_vmafmotion.o framesync.o
334335
OBJS-$(CONFIG_VSTACK_FILTER) += vf_stack.o framesync.o
335336
OBJS-$(CONFIG_W3FDIF_FILTER) += vf_w3fdif.o
336337
OBJS-$(CONFIG_WAVEFORM_FILTER) += vf_waveform.o

libavfilter/allfilters.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ static void register_all(void)
342342
REGISTER_FILTER(VIDSTABDETECT, vidstabdetect, vf);
343343
REGISTER_FILTER(VIDSTABTRANSFORM, vidstabtransform, vf);
344344
REGISTER_FILTER(VIGNETTE, vignette, vf);
345+
REGISTER_FILTER(VMAFMOTION, vmafmotion, vf);
345346
REGISTER_FILTER(VSTACK, vstack, vf);
346347
REGISTER_FILTER(W3FDIF, w3fdif, vf);
347348
REGISTER_FILTER(WAVEFORM, waveform, vf);

0 commit comments

Comments
 (0)