find repeated fragments in a video file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

find repeated fragments in a video file

Frans Meulenbroeks
Hi,

I'm looking for a way to detect repeated fragments in a video file.
About 8 years ago I wrote some code to do this (based upon perceptual
hashing), but that code is owned by my old employer and I have no access to
it any more.
And of course now I need something similar

What I did was roughly: calculate a 32 bit hash covering 5 seconds of
video, and do that for every second of video (or maybe every I-frame).
So an hour of video would give me 3600 hashes. These then could be
processed to find near duplicates (using Hamming distance)
(actually it was a bit more advanced but you get the idea)

Of course I can re-create this code, but I was wondering if there is by any
chance something in ffmpeg that I could use for this purpose (e.g. based
upon mpeg-7 signatures).
Is there some support to do this (e.g. calculating a reasonable good and
compact hash)?

Any suggestion is greatly appreciated!

Frans
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: find repeated fragments in a video file

Carl Eugen Hoyos-2
2019-02-13 23:10 GMT+01:00, Frans Meulenbroeks <[hidden email]>:

> Of course I can re-create this code, but I was wondering if there is by any
> chance something in ffmpeg that I could use for this purpose (e.g. based
> upon mpeg-7 signatures).

The signature filter is based upon mpeg-7 signatures.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".