On Feb 17, 2017, at 4:00 AM, gem-dev-request@lists.iem.at wrote:
From: "me.grimm" <megrimm@gmail.com mailto:megrimm@gmail.com> Subject: Re: [GEM-dev] [pix_video] error with macbook's built-in camera Date: February 16, 2017 at 9:12:11 AM MST To: Dan Wilcox <danomatika@gmail.com mailto:danomatika@gmail.com> Cc: gem-dev <gem-dev@lists.iem.at mailto:gem-dev@lists.iem.at>
*works* but there is a memory leak, so Pd crashes after about a minute of playback.
got it compiled and crash confirmed... cool that it works though!
how to track this down?
I believe it’s something to do with the frame buffer not being freed correctly. None of the obvious Obj-C’isms are at fault though. I might have to rework things to use a different AVPlayer mechanism, though, based on the OpenFrameworks classes I’m working from.
Also, the performance issue I’m seeing relates to watching the OS media conversion helper process spin up CPU usage when the video is playing back, so the current method may not be the most performative either. As a first step, though, at least you can see frames are being read and then rendered in GEM.
btw if i change from [gemglutwindow] to [gemcocoawindow] i get a totally different type of pd freakout.... GL: invalid framebuffer operation, glitching, etc
cocoawindow needs updates as well, I believe.
-------- Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/