Hacker News new | past | comments | ask | show | jobs | submit login

Very cool concept and article.

You may also notice that many of these looping gifs are done in much simpler way by just playing part of a video and then playing it in reverse.




This so called pingpong style method can create a loop out of any source material, but the result will most likely look unnatural since you're reusing frames and it only works quite convincingly for pendular motions. The method described here finds naturally appearing loop candidates in any video stream and is way more flexible.


So you could just check if the frame i is similar to the frame n-i?


The idea is that frame 0 is similar to frame 0, and also that frame n is similar to frame n. (The resulting gif is 2n - 2 frames long.)


I'm missing something. I don't really understand the first part of what you said...


You just play it normally once, then in reverse. Then it loops around.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: