Different from animeloop-cli, this repo aims at founding the longest loop in given duration instead of finding all possible loop.
- clone the repo
- if you'd like use make, then
cd loop && make - if you prefer Xcode, then just open
loop.xcodeprojand compile loop [video file] [clips directory]
A: The search methods are different between these two repos.
animeloop-cli tries to give you all the possible loops with duration from minimum to maximum.
However, as the name suggests, longest-animeloop-cli tries to only give you the longest animeloop with duration from minimum to maximum.
A: First, since animeloop-cli gives you all the possible loops, it searches from the begin to the end while longest-animeloop-cli searches from back to the start.
Second, both projects need further refactoring and refinements. It's hard to keep pace because of the different search goal. (Maybe these two repo will combine in the future)
for video like
ABACDEABACDEB
and duration [1, 7]
animeloop-cli gives you
- ABA
- ABACDEA
- ACDEA
- DEABACD
- EABACDE
- ABA
- BACDEB
however, longest-animeloop-cli gives you
- ABACDEA
- BACDEB