I am currently trying to eliminate duplicated videos with minimal changes. Those might be a slightly different encoding, a lower resolution or just changed meta data. These videos are in a complex folder structure and therefore only the duplicate in certain folders can be deleted.
Therefore I am looking for a tool, for Linux, that just returns a list of the found duplicates, that I would then process with a simple script myself. This tool would have to be usable only with CLI (or as a library), since I would like to run it on the server directly and only let it compare certain subfolders automatically to save time (the whole server would take far too long).
The only things I found so far were dupeguru and videoduplicatefinder. Both of which are sadly GUI programs.
Currently I am using jdupes to delete all byte perfect copies. But that is too easily fooled by changed metadata or a different format like webm vs m4v vs mp4.
Does anyone know such a tool? Or is this something, I would have to write myself, if I need it?
ffmpeg
is the standard tool to use to handle videos, now I don't know if it can be used to compare videos, but maybe there's a way using some scripting.ffmpeg
which suggests it may indeed be possible to do it manually withffmpeg
.md5
may be a tool to compare two identical files.