|
View your shopping cart.
Recent topics
Recent Comments |
Timelapse with QCQuick rundown of a project I've had running at work for 8 months or so, based on QC. It's a composition (well, 2) that produces a timelapse video of a construction site where we're building a new college campus: Dunno why, but youtube has messed up the encoding quite badly. I did try vimeo but the upload ground to a halt each time :( Also, the quality at the start is terrible - the camera has no sun filter until later on so lighting is horrible, and my composition slowly improved as the building went up ;) We have one really, really bad quality webcam pointing at the site. It doesn't do image capture as such, but works as a network camera you can connect to through a browser, then streams an mp4 which I've hooked into with QC. The camera focuses poorly, doesn't handle wide dynamic ranges well at all (it's pointing south and the sun crosses the screen.. ow!) and the sensor is rubbish (640x480 max). The picture I get is blurry with lots of noise, especially early or late in the day when the light levels are low. Worse: some idiot decided home broadband will work fine because it's "20MB/s speed" - forgetting that it's 20MB down, only 0.5MB up, and the video is sent up the link. So the bitrate is really low too :( Well, I do like a challenge :D I already have a bunch of stuff designed to capture images from worse situations than even this, so I figured it shouldn't be too hard. So here's roughly how I handled it:
The main capture app:
This part of the comp has been running since January, 24/7, and has been rock solid (well, I give my mac a reboot once a week.. but I'm also running a whole ton of other stuff on the same box, including windows under vmware, and it's only an old imac :) I'm really impressed with how well QC coped with this :) Especially as it's handling a live video stream, and all of the processing is done in 32bit mode (the exposure part totally needs it). The one thing I found really hard here was 'error handling'. If the video stream drops out (which it does, very regularly!) I have to detect that, 'pause' the rest of the comp, and wait for it to resume. Sometimes it doesn't resume, so I have a 2nd layer of protection that resets the movie loader patch every 30 seconds if the stream fails, in the hope of restarting it. It took a few goes to get this part right :/ The 2nd part:
There's probably 6 more months of construction to go yet, but the camera is down so I've just finished the 2nd part of the project off. I'll update the video at the end. If anyone wants more details or anything from my work let me know. I won't post the .qtz files, they're a) a mess, b) hard wired for this particular case and c) owned by my employer. But I'm happy to share any of the parts (most came from my own projects outside of work anyway). More like this
|
(probably too late to catch you since this thread is a few months old) I'd be interested in the part of your comp that deals with the frame averaging...how are you storing the frames to be averaged? I can imagine a really inefficient queue object with a lot of outputs or something but I'm wondering how you're going about it in quartz..or maybe my bigger question is what are you using to output images automatically from qc for making a timelapse?
No queues, infact I don't store the frames at all. I average in each frame as it arrives. Roughly how it's done:
A modified version of the 'image writer' xcode plugin example (pretty much the same, but saves as jpeg - I have 300,000+ images so far, disk space can be an issue ;)
I'll post up parts of the comp tomorrow to show how this works better.
Posted a simplified version up here: http://kineme.net/composition/psonice/Combiningframeslongexposureblendin...
ah very cool. I got pretty close with your instructions from last night but my math wasn't quite as smart. Now I just need to figure out why the imagewriter plugin isn't showing up for me..i tracked down a version on the forums but haven't gotten it working yet
I've attached mine. It says it writes png files, but actually writes jpegs. I probably have an actual png version somewhere, let me know if you need that.
ah great..that one happens to work..time to give all of this a try..thanks a lot, i'll let you know if i hit a snag