News for hackers. Stuff that matters.
Re:An Algorithm to Extract Looping GIFs from Videos by leni536 on Wednesday February 11, 2015 @06:27PM (#9036388)
We will say that a video segment loops well when its first and last video frames are very similar.

It's a reasonable approximation. However really perfect loops have not only matching positions of the objects but perfect speeds too. I would calculate optical flows and compare them at the first and the last frames too and somehow put it into the distance function.

One example: this algorithm would find the half period of a pendulum perfectly loop. Taking optical flows into account would fix this.

Re:An Algorithm to Extract Looping GIFs from Videos by kazinator on Thursday February 12, 2015 @02:09AM (#9037812)
Yes. For instance, suppose a point-like object is moving on a flat plane, in a repeating figure eight path. The ideal repetition unit is one cycle of the entire figure eight. But by the frame similarity heuristic, we will find that the cross in the figure eight creates two identical positions which give rise to a half-cycle of the figure eight also being considered viable. In this half cycle, the point abruptly changes direction at the cusp of a tear-drop path.
Re:An Algorithm to Extract Looping GIFs from Videos by Tepix on Thursday February 12, 2015 @09:49AM (#9038961)
I don't think it can be generalized like that, what if you want to loop a bouncing ball and start the loop at the moment the ball hits the floor?
Re:An Algorithm to Extract Looping GIFs from Videos by amelius on Thursday February 12, 2015 @03:45AM (#9037999)
Note that it is only possible to make a video looping if the entropy does not increase visibly in it.
Re:An Algorithm to Extract Looping GIFs from Videos by mxfh on Wednesday February 11, 2015 @05:44PM (#9036191)
Re:An Algorithm to Extract Looping GIFs from Videos by MzHN on Thursday February 12, 2015 @01:47AM (#9037754)
I was hoping Microsoft would turn this into a product.

They did bring Cliplets[1] and eventually the Cinemagraph app for Windows Phones[2], but neither of those have any intelligence to them.

The only benefit they provide over a video editor is that you can paint a mask to specify the area of the video to loop. The loops still turn out jumpy, unless you do all the manual work, as mentioned in the article itself.

[1] http://research.microsoft.com/en-us/um/redmond/projects/clip...

[2] http://www.windowsphone.com/en-us/store/app/lumia-cinemagrap...

Re:An Algorithm to Extract Looping GIFs from Videos by FraKtus on Wednesday February 11, 2015 @11:54PM (#9037455)
The automated video looping paper is a fascinating one… much better … however it's patented. Anybody knows what is the position of Microsoft about the patents they own and describe in their research paper ?
Re:An Algorithm to Extract Looping GIFs from Videos by NicoJuicy on Thursday February 12, 2015 @09:42AM (#9038936)
You could try contacting them through Twitter about that
Re:An Algorithm to Extract Looping GIFs from Videos by FraKtus on Friday February 13, 2015 @02:28AM (#9043297)
I have done that, their email is on their papers … no reply
Re:An Algorithm to Extract Looping GIFs from Videos by vermontdevil on Thursday February 12, 2015 @09:42AM (#9038933)
Chrome blocked me from downloading loopFindr as malicious.
Re:An Algorithm to Extract Looping GIFs from Videos by comboy on Wednesday February 11, 2015 @05:17PM (#9036084)
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.

Re:An Algorithm to Extract Looping GIFs from Videos by mxfh on Wednesday February 11, 2015 @06:06PM (#9036307)
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.
Re:An Algorithm to Extract Looping GIFs from Videos by rnhmjoj on Wednesday February 11, 2015 @05:41PM (#9036179)
So you could just check if the frame i is similar to the frame n-i?
Re:An Algorithm to Extract Looping GIFs from Videos by jessaustin on Wednesday February 11, 2015 @05:48PM (#9036211)
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.)
Re:An Algorithm to Extract Looping GIFs from Videos by loco5niner on Wednesday February 11, 2015 @06:40PM (#9036441)
I'm missing something. I don't really understand the first part of what you said...
Re:An Algorithm to Extract Looping GIFs from Videos by tokenizerrr on Wednesday February 11, 2015 @07:13PM (#9036563)
You just play it normally once, then in reverse. Then it loops around.
Re:An Algorithm to Extract Looping GIFs from Videos by ZoFreX on Wednesday February 11, 2015 @05:43PM (#9036187)
I assume something has broken, but this article makes no sense to me. It's full of sentences like:

"If is very similar to , and is different from , then we do not need to compute to know that and are also very different."

Re:An Algorithm to Extract Looping GIFs from Videos by rnhmjoj on Wednesday February 11, 2015 @05:45PM (#9036201)
It uses MathJax to render LaTeX. Probably you have blocked the script or it's not loaded.
Re:An Algorithm to Extract Looping GIFs from Videos by pavel_lishin on Wednesday February 11, 2015 @05:45PM (#9036197)
I don't think it's rendering correctly for you: http://i.imgur.com/vCmW52W.png
Re:An Algorithm to Extract Looping GIFs from Videos by timmclean on Wednesday February 11, 2015 @07:27PM (#9036614)
Do you have HTTPS Everywhere installed? Their JavaScript is hosted on HTTP, so it gets blocked with a mixed content warning on Firefox (probably on Chrome too).
Re:An Algorithm to Extract Looping GIFs from Videos by rhambasan on Wednesday February 11, 2015 @05:45PM (#9036198)
Do you have Javascript enabled?

(The page is running MathJax to convert MathML to HTML + CSS)

Re:An Algorithm to Extract Looping GIFs from Videos by Zikes on Wednesday February 11, 2015 @05:47PM (#9036207)
The article uses a lot of MathML, which seems to be parsed for display by the MathJax JS library.
Re:An Algorithm to Extract Looping GIFs from Videos by Animats on Thursday February 12, 2015 @12:21AM (#9037538)
With a better, faster algorithm, probably with some help from a GPU, this could become a new app. There's already "http://loopc.am/", but it's not as good. Then cash out by selling out to Instagram. Also use to jazz up real estate ads.
Re:An Algorithm to Extract Looping GIFs from Videos by xxxyy on Thursday February 12, 2015 @08:12AM (#9038616)
Isn't this just k-NN? I mean: one can reduce this problem to k-NN by first loading the database with all video frames, and then performing queries using frame 0, frame 1, etc.

There are good tree algorithms[0] and implementations[1][2] for executing k-NN queries. These implementations also exploit the properties of the triangle inequality.

[0] http://en.wikipedia.org/wiki/Ball_tree

[1] http://mlpack.org/doxygen.php?doc=nstutorial.html

[2] http://scikit-learn.org/stable/modules/neighbors.html#neighb...

Re:An Algorithm to Extract Looping GIFs from Videos by baxter001 on Wednesday February 11, 2015 @06:51PM (#9036485)
Slightly misleading to say the summed colour value difference between the frames a distance that's analogous to a geometric distance, geometric distance measures on data with high numbers of dimensions becomes useless, as the dimensionality increases the difference between 'near' and 'far' tends towards zero.