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

Paul B Mahol onemda at gmail.com
Tue Jun 23 17:44:16 CEST 2015


On 6/23/15, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> Hi,
>
> On Tue, Jun 23, 2015 at 10:45 AM, Ronald S. Bultje <rsbultje at gmail.com>
> wrote:
>
>> On Tue, Jun 23, 2015 at 10:42 AM, Paul B Mahol <onemda at gmail.com> wrote:
>>
>>> On 6/22/15, Paul B Mahol <onemda at gmail.com> wrote:
>>> > On 6/22/15, Nicolas George <george at nsup.org> wrote:
>>> >> Le quartidi 4 messidor, an CCXXIII, Paul B Mahol a ecrit :
>>> >>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>>> >>> ---
>>> >>>  Changelog                |   1 +
>>> >>>  doc/filters.texi         |  53 ++++++++
>>> >>>  libavfilter/Makefile     |   1 +
>>> >>>  libavfilter/allfilters.c |   1 +
>>> >>>  libavfilter/vf_ssim.c    | 340
>>> >>> +++++++++++++++++++++++++++++++++++++++++++++++
>>> >>>  5 files changed, 396 insertions(+)
>>> >>>  create mode 100644 libavfilter/vf_ssim.c
>>> >>
>>> >> Would it make sense to merge it with the psnr filter, sharing code
>>> >> and
>>> >> offering a common user interface for various quality measurements?
>>> >
>>> > Just to put it into same file?
>>> > Moving it into same filter would be also possible but how would then
>>> > new filter be named then?
>>>
>>> Looks like there are no new comments so I can safely assume current
>>> state as is is good enough.
>>
>>
>> Yeah lgtm.
>>
>
> Actually one question - how would I use this with with a raw yuv file as
> reference?

ffmpeg -i main.movie -s WIDTHxHEIGHT [-pix_fmt yuv420p] -i REF.yuv
-lavfi ssim -f null -

Both psnr and ssim:

ffmpeg -i main.movie -s WIDTHxHEIGHT -i REF.yuv -lavfi
"[0:v][1:v]ssim;[0:v][1:v]psnr" -f null -


More information about the ffmpeg-devel mailing list