please help in beta testing

muccio's picture

Hi everyone, I'm trying to develop (very 1st time with mac and obj-c) this qc patch for an effect called 'time displacement' the patch is running fine on my mac book pro 13'' (2.4 ghz intel core 2 duo - 8Gb ram) but crash on my friend mac book pro 17'' (core 2 duo 2.66 - 8Gb ram). I'm wondering if this is a problem of video capture resolution (I'm hard coding the jpg input time map to 640*480 and saving frames in allocated area of memory). Can someone test? Can I post code somewhere to get help?

PreviewAttachmentSize
time_displacement.zip65.34 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Swiftlikeninja's picture
Re: please help in beta testing

I have an 3.06 ghz core 2 duo imac w/ * GB of Ram. The plugin crashed almost instantly unless I fed the video input through the image resizer/crop and set the image to 640*480 or below. The width has some leeway (approx. 100-200 pixels) the height needs to be no higher than 480. I cant quite help you resolve this issue but I can at least help lead you in the right direction.

Once the image is cropped it appears to work w/o issue.

Swiftlikeninja's picture
Re: please help in beta testing

Also, the comp crashes if the inputframes goes above 60. The entire comp gets 20 fps no matter any variable changes.

cybero's picture
Re: please help in beta testing

In answer to where you can post code.

Zip up your xCode project and post onto this thread :-).

muccio's picture
Re: please help in beta testing

Thanks a lot I'll Try to oversize a couple of mallocs a bit and see what happens I'll post the code here soon

cybero's picture
Re: please help in beta testing

Crashes unless cropped. 10.6.x

Crashes if I try to take a Viewer snapshot, even if cropped. 10.6.8

Fails to work on stop and restart of Viewer window in 10.7.x

Interesting idea.

iMac nVidea 9400 2.66 GHz Core 2 Duo [10.6.x | 10.7.x]

muccio's picture
Re: please help in beta testing

And here is my code with some changes, try'd to oversize a bit the allocated memory buffer, seems to work fine for me now, except that for my tester friend after some minutes of rendering in a bigger composition it still crashes...(?!?!?!) the project is a bit confusionary (....), here is it in brief: it loads the map image and the video-in in allocated memory buffers, saving the frames in an array of them. depending on the value of the map it copy on that location the corresponding frame content for rendering on screen, so going 'back in time' the bool flags all around are just to give a restart to the cycle if the map image is changed on the fly. it's really simple, the only trouble is the buffer conversion and the memory management of obj-c (that I know really little) .

Thanks for help

PreviewAttachmentSize
testpatch+xcode.zip2.93 MB

cybero's picture
Re: please help in beta testing

[10.7.2] QC 4.5

Black empty space, unfortunately :-(.

Nil desperandum.

muccio's picture
Re: please help in beta testing

That means input goes beyond 640*480 (still have that limit issue) going downsize should give back the image

cybero's picture
Re: please help in beta testing

@muccio that tip worked.

I found on Lion [10.7.2] that seeking to shift the number of frames arbitrarily on the patches Inspector panel caused an immediate crash.

Find attached a test variant upon your original test composition. It is using Kineme Video Tools Quick Time Player, Image Crop and Rendering Image Dimensions.

In Lion [10.7.2] the Video input loads and the frames work for a brief while. Then we still get black empty space in the composition I'm uploading here.

Due to the way that QC 4.5 fails to reload the stock video iSight input I chose to employ a video of mine. Any video will do, I should think, & on 10.6.x the Movie Importer patch should suffice rather than the Kineme Video Tools employed by me for the reason that Lion does not properly support the function of that patch.

PreviewAttachmentSize
test_crash_ crop_and_stretch_r_i_d.qtz45.09 KB