qarmin / czkawka

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

Implement Hardware acceleration #1108

Open Wrestor opened 10 months ago

Wrestor commented 10 months ago

Feature Description Implement hardware acceleration to take advantage of specialized hardware and speed up czkawka even more. This would make finding similar photos and videos even more efficient. Similar to videoduplicatefinder

qarmin commented 10 months ago

Is even possible to use gpu acceleration when resizing/hashing images(I am mainly talking about the available libraries)?

Duplicate videos are found by a separate library that extracts a certain number of images from the video stream and hashes them, so here, too, the main problem is the issue of resizing/hashing images and not hardware acceleration(I don't think hardware acceleration speeds up taking images from middle of video, but I could be wrong)

Wrestor commented 10 months ago

Is even possible to use gpu acceleration when resizing/hashing images(I am mainly talking about the available libraries)?

Duplicate videos are found by a separate library that extracts a certain number of images from the video stream and hashes them, so here, too, the main problem is the issue of resizing/hashing images and not hardware acceleration(I don't think hardware acceleration speeds up taking images from middle of video, but I could be wrong)

I see, I didn't know that, should I close this request then?

MystikalE commented 9 months ago

Is there anything more about it?

Farmadupe commented 8 months ago

for reference with videos:

In the past I experimented with using gstreamer instead of ffmepg to decode videos. It is very easy to use GPU-decoding with gstreamer, however:

So I think GPU accelerated video decoding would be a bad idea

(FWIW the underlying library, vid_dup_finder_lib uses ffmpeg not gstreamer, but I am sure ffmpeg can use GPU decoding)