OK folks, I think I've fixed the problem. Though I've only got the one mac here, so can't be certain. Those interested in animated superimposed moustaches, please find the code at:
https://gist.github.com/1469659 To attempt a hi-definition facial appendage, use the following settings (appropriate hardware is required). width = 1280 height = 720 session.sessionPreset = AVCaptureSessionPreset1280x720 Do let me know if this fixes the issue. Al On 19 Dec 2011, at 19:37, Matt Aimonetti wrote: > When I tried the live video script, the items weren't properly located either. > > -m > Sent from my iPhone > > On Dec 19, 2011, at 12:34, Alan Skipp <al_sk...@fastmail.fm> wrote: > >> Hmm… curious. >> The positioning code could certainly do with some refinement, but from my >> testing it's close enough for rock 'n' roll, as they say. Perhaps you added >> the code to an existing project which set-up the window/view/layer slightly >> differently? If not, then I'm confused also… >> >> Al >> >> On 19 Dec 2011, at 14:56, Pavlos Vinieratos wrote: >> >>> the mustache is off even in your original gist. am i right? or is this some >>> kind of weird setup where its works on your mac and not on mine.. >>> >>> On Mon, Dec 19, 2011 at 4:22 PM, Alan Skipp <al_sk...@fastmail.fm> wrote: >>> Hi, >>> Could you create a new gist with your additions and post a link to it. I'll >>> then take a look and see if I can discover the problem. It could be >>> something to do with setting the anchorPoint on the CALayer, but that's >>> just a wild guess at the minute. >>> >>> Al >>> >>> >>> On 19 Dec 2011, at 13:42, Pavlos Vinieratos wrote: >>> >>>> hello alan. i was playing around with your gist, but the glasses and all >>>> the extra layers are off. i positioned the layers over the face, but they >>>> always stay to the right of the face, and the distance they are to the >>>> right, is not even fixed. it comes closer to the face when i move to the >>>> left. >>>> >>>> i'm confused.. >>>> >>>> On Tue, Dec 13, 2011 at 2:07 AM, Alan Skipp <al_sk...@fastmail.fm> wrote: >>>> A bit late to the moustachioed party. But here is an attempt at the live >>>> moustachification problem. The effect is perhaps more like being pursued >>>> by a persistent tache, rather than wearing a tache. Those with more >>>> powerful hardware (or less inclination to move around in front of the >>>> camera) may have more convincing results. >>>> I have stolen the moustache and moustache positioning method from the >>>> previous submissions - I hope that's OK. With any luck there'll be >>>> something worth stealing back from my submission. >>>> No attempts as yet at recording the effect (AVFoundation is a scary >>>> labyrinth). >>>> >>>> https://gist.github.com/1469659 >>>> >>>> Al >>>> >>>> On 8 Dec 2011, at 09:23, Sean Mateus wrote: >>>> >>>> > Hi Pavlos, >>>> > as we talked yesterday on twitter; I hope we can use this code >>>> > https://gist.github.com/1427886 as basis for the video version your >>>> > mustachification-script! >>>> > >>>> > you can ping me on twitter @seanlilmateus >>>> > >>>> > >>>> > -- >>>> > Sean Mateus >>>> > _______________________________________________ >>>> > MacRuby-devel mailing list >>>> > MacRuby-devel@lists.macosforge.org >>>> > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>>> >>>> _______________________________________________ >>>> MacRuby-devel mailing list >>>> MacRuby-devel@lists.macosforge.org >>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>>> >>>> >>>> >>>> -- >>>> Pavlos Vinieratos >>>> _______________________________________________ >>>> MacRuby-devel mailing list >>>> MacRuby-devel@lists.macosforge.org >>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >>> >>> _______________________________________________ >>> MacRuby-devel mailing list >>> MacRuby-devel@lists.macosforge.org >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >>> >>> >>> >>> >>> -- >>> Pavlos Vinieratos >>> _______________________________________________ >>> MacRuby-devel mailing list >>> MacRuby-devel@lists.macosforge.org >>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >> >> _______________________________________________ >> MacRuby-devel mailing list >> MacRuby-devel@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel