Skip to content

Import & Call ffmpeg dynamic libraries for comparing videos, instead of spawning new process. #1479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tdlbugreport opened this issue Mar 18, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@tdlbugreport
Copy link

Title says all. AFAIK it boosts performance a lot, so please consider implementing such functionality like Video Duplicate finder.

@tdlbugreport tdlbugreport added the enhancement New feature or request label Mar 18, 2025
@tdlbugreport tdlbugreport changed the title Call ffmpeg libraries for comparing videos, instead of spawning new process. Import & Call ffmpeg libraries for comparing videos, instead of spawning new process. Mar 18, 2025
@qarmin
Copy link
Owner

qarmin commented Mar 18, 2025

I don’t think that’s possible.

Czkawka uses vid_dup_finder_lib, which is the only Rust library I know that supports video hashing. There are no alternatives, and I don’t have the time or skills to create a new one.

The current implementation has one major advantage—it doesn’t link FFmpeg to the binary, making it more portable and eliminating the need for FFmpeg as a build dependency.

Nevertheless, I might add GStreamer and FFmpeg as dependencies in the future for extracting frames and processing them (e.g., trimming black or static backgrounds). However, video file comparison is too complex for me.

@tdlbugreport
Copy link
Author

Thanks for clarification. also please ignore what i said on OP - i meant dynamic library loading, not statically linking all those ffmpeg binaries.

@tdlbugreport tdlbugreport changed the title Import & Call ffmpeg libraries for comparing videos, instead of spawning new process. Import & Call ffmpeg dynamic libraries for comparing videos, instead of spawning new process. Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants