how to glue shit together

How Quickly Can We Glue Some Shit Together

Off the back of this mornings conversation I figured I’d get the ball rolling on this topic.

I have a lot of experience of the frustration of muddling through layers of code abstraction with only an inkling of what is going on. In part this is an experiment to see how quickly I can accomplish what I want via searching the distributed knowledge of coders via Google. For a long time I have been uneasily conscious of how much my knowledge of code and efficacy of getting code work done hinges upon my efficient use of boolean search strings and knowing which forums to glean first.

I want a rough and ready way to analyse the movement of the tea leaves from the POV of the webcam. I searched for “image analysis perl” and in (0.15 seconds) approximately 299,000 results were returned. I believe I am found what I am looking for on the third returned hit (http://w3.biosci.utexas.edu/atkinson/software/Scripts.html) a series of scripts designed to track the movements of flies. I imagine that pattern won’t be dissimilar from swimming tea leaves.

But I need to split my webcam captured .ogv file into individual jpgs for this script to work. I go through several iterations of search strings before this one “split .video into frames ubuntu separate” returns the hint I need (http://stackoverflow.com/questions/2691996/ffmpeg-split-into-frames). This is stack overflow, the site that Tim counselled us on.

[evolution of search strings = split .gov into consecutive jpg, split .ogv into consecutive frames, split .video into frames ubuntu separate]

From this page I knew what I wanted was: “ffmpeg split jpgs”.

 

But then I needed to know how to install ffmpeg. And then I discovered that ffmpeg won’t convert ogv files. So then I need mencoder to change my .ogv files to avis which can be converted by ffmpeg into separate jpegs for the purposes of the script which I found so quickly.

I believe everything I want to do could be done quickly via a knowledge of PD or MAX or similar programs. However I wanted to test if it was possible to quickly assemble some code in a hodge podge magpie manner. In

Leave a comment