1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-30 19:22:11 +00:00
mpv/video/filter
wm4 9cfeafa89e video: add vf_fingerprint and a skip-logo script
skip-logo.lua is just what I wanted to have. Explanations are on the top
of that file. As usual, all documentation threatens to remove this stuff
all the time, since this stuff is just for me, and unlike a normal user
I can afford the luxuary of hacking the shit directly into the player.

vf_fingerprint is needed to support this script. It needs to scale down
video frames as part of its operation. For that, it uses zimg. zimg is
much faster than libswscale and generates more correct output. (The
filter includes a runtime fallback, but it doesn't even work because
libswscale fucks up and can't do YUV->Gray with range adjustment.)

Note on the algorithm: seems almost too simple, but was suggested to me.
It seems to be pretty effective, although long time experience with
false positives is missing. At first I wanted to use dHash [1][2], which
is also pretty simple and effective, but might actually be worse than
the implemented mechanism. dHash has the advantage that the fingerprint
is smaller. But exact matching is too unreliable, and you'd still need
to determine the number of different bits for fuzzier comparison. So
there wasn't really a reason to use it.

[1] https://pypi.org/project/dhash/
[2] http://www.hackerfactor.com/blog/index.php?/archives/529-Kind-of-Like-That.html
2019-09-19 20:37:05 +02:00
..
refqueue.c video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
refqueue.h video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
vf_d3d11vpp.c video: make --deinterlace and HW deinterlace filters always deinterlace 2018-02-13 17:45:29 -08:00
vf_fingerprint.c video: add vf_fingerprint and a skip-logo script 2019-09-19 20:37:05 +02:00
vf_format.c video: remove internal stereo_out flag 2018-04-29 02:21:32 +03:00
vf_sub.c video: rewrite filtering glue code 2018-01-30 03:10:27 -08:00
vf_vapoursynth.c vf_vapourynth: remove Lua backend 2019-09-19 20:37:05 +02:00
vf_vavpp.c vf_vavpp: disable this filter 2019-09-15 17:59:25 +02:00
vf_vdpaupp.c video: make --deinterlace and HW deinterlace filters always deinterlace 2018-02-13 17:45:29 -08:00