qarmin / czkawka

Multi functional app to find duplicates, empty folders, similar images etc.
Other
19.37k stars 634 forks source link

Duplicates videos stuck at 100% on Windows version 4.0 #633

Open Daojin9 opened 2 years ago

Daojin9 commented 2 years ago

So I tried to use the tool to check duplicates videos and it's stuck at 100%. It took like 6 hours to get there, notice that one of the ffmpeg windows didn't close up during the scan where as thousands opened then closed almost instantly during that time. Bug

Farmadupe commented 2 years ago

Hello, I am not the author of Czkawka but I am the author of two underlying libraries that creates video hashes with Ffmpeg (vid_dup_finder_lib, ffmpeg_cmdline_utils)

From your description I guess the most likely causes might be:

I think there is no general solution to knowing if Ffmpeg got stuck or if the video is decoding slowly (the halting problem). Additionally I think it is in the nature of media encoding/decoding software to be unreliable because they contain many codecs written from many sources, probably with many bugs. So the best solution might be to add some sort of timeout to try and detect when Ffmpeg has gone wrong.

I think the following mitigations could be considered:

To help your problem now:

If you can find the broken video and you are willing to share it, it woulld be nice if you can upload it somewhere. It can be used to understand if any bug exists in Czkawka, ffmpeg_cmdline_utils, or ffmpeg. The video would have to contain no personal information because I do not want to assume responsibility for protecting any person's privacy.

yaaaaa commented 2 years ago

Request to add showing current processed filename to fast finding corrupt videos