[FFmpeg-devel] [PATCH] avfilter: add vmafmotion filter

Ronald S. Bultje rsbultje at gmail.com
Fri Sep 29 16:39:58 EEST 2017


Hi,

On Fri, Sep 15, 2017 at 4:47 PM, Ashish Pratap Singh <ashk43712 at gmail.com>
wrote:

> From: Ashish Singh <ashk43712 at gmail.com>
>
> Hi, this patch addresses the previous issues and changes it to a single
> input filter.
>
> Signed-off-by: Ashish Singh <ashk43712 at gmail.com>
> ---
>  Changelog                   |   1 +
>  doc/filters.texi            |  14 ++
>  libavfilter/Makefile        |   1 +
>  libavfilter/allfilters.c    |   1 +
>  libavfilter/vf_vmafmotion.c | 325 ++++++++++++++++++++++++++++++
> ++++++++++++++
>  libavfilter/vmaf_motion.h   |  58 ++++++++
>  6 files changed, 400 insertions(+)
>  create mode 100644 libavfilter/vf_vmafmotion.c
>  create mode 100644 libavfilter/vmaf_motion.h


I made tiny changes to this patch (see attached patch). Basically, it adds
an option (similar to psnr/ssim filters) to log the per-frame scores to a
file, which can be convenient for debugging the per-frame scores, or using
them externally using CLI. Secondly, it adjusts the filter/sad so that the
calculations use a slightly higher internal depth for the fixed-point
integer calculations. This makes the score slightly closer to the
floating-point equivalent in the reference code. Lastly, it normalizes the
10-bit score back to 8-bit, which is what the reference code does also. It
also makes use of the vmafdsp.sad() function pointer instead of calling
image_sad() directly, so SIMD will be used when added later on.

This should address all review comments (the rest were basically things
that will be used in subsequent patches, so whether we address it or not
doesn't really affect the final product), so if there's no further
comments, I'll squash the two patches together and push it.

Ronald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Tiny-adjustments.patch
Type: application/octet-stream
Size: 6184 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170929/a2e8d9ba/attachment.obj>


More information about the ffmpeg-devel mailing list