I want to use this code and capture the result and post it on vimeo. My problem is that I dont know how to do this, I dont know how to implement moviemaker (the library) into my code. Can somebody help me?
Where this finishMovie() comes from? It isn't documented and I don't see it in the source. Idem for addFrame() with parameters. This one exists but isn't documented. The library ref. only shows addFrame() without parameter. The latter takes care of doing loadPixels(), which you don't do in your code. I suggest to just use the parameterless version, which does the same thing, but better!
Oh, I missed something important: don't forget one fundamental Processing rule, which shouldn't be ignored without good reason and knowledge: always, ever, put size() at the start of setup(). Your instantiation of MovieMaker just gets 0 to width and height parameters because the size isn't known at this point...
i would choose my words a bit more wisely. you cant record sound and movie in one file, but you can still record sound. so just record them into two files and use any video editor to put them together in the end. should be pretty easy.
If you want to create graphical installations, why not just export the application, and run the apps in the installation?
If you need to document your work, video caps with sound for youtube etc, or if you need to have the installation running on a dvd player or similar, I would suggest using an external program to capture the video and sound together from the application window (there are various programs for windows/mac that do this).
If you insist on doing it within processing, like mentioned above the best method is to make one sketch that will capture the video, and make another that will do the sound separately. Doing them both together in one sketch will no doubt end in tears as like you said, rendering to the movie file always slows the sketch down.
The video caption option isnt very good. It doesnt capture all frames and these programs are really suitable for camsex or whatever, not to record high framed lossless video, i think...maybe my HDD is slow though and causes this...
the other option is troublesome because even if you try to synch it later, its unsynched, and if i try to synch the sound, u need to stretch the sound which results in bad sound where the sounds are faster than u want, even though u dont do it with pitch change.
Anyway, IF there are any way of doing this in processing, capturing sound and graphics i would like to know.... if there is not...ill mail the developers and try to make them build in this function in moviemaker or anytinhg ^^
Surely if you set the capture programs fps to the same fps as the processing sketch then it will capture all of the frames.
I do agree though, that it would be better if there was some built in way of capturing both simultaneously in one file. If I had any idea of how to do it, I would make a library to do exactly that. In the past, I've always had to capture video + audio separately and sync together afterwards.
I never recorded audio, so i don't know, but I have "recorded" video without movieMaker by saving frames individually with saveFrame() at the end of the draw. It takes some time and is not realtime, but as it saves every frame it should be consistent in fps when playing later. So maybe you can latter sync it with the sound recorded in other session/way without loosing sync...
Bot what it does, instead of recording what's going on the sketch, it pays the beginning frame, the middle and the end, as the opening frames. not just a smooth movement. What do you think, is there any way to create like an accurate reflection of what's in the sketch window, like if you would record it with a camera for example?
I think, it just become too heavy to process, when I insert the code for the video recording, the whole sketch runs slowlyer. So I give up and I'm just recording screen where my original sketch is running, then it's an exact replica :) Thanks for your help anyway xxx
First of all, good job on this thread, there are some really good tips here.
I'm facing a problem similar to these but with some more dificulties. I'm capturing a movie from a camera to the sketch and showing it with some other elements (images, other videos, etc.) and I want to record the whole thing, with audio(!) BUT without a few elements (let's say a menu).
So, is there a way to read the pixels but not of the whole scene? (I'm guessing I should put the reading before drawing the unwanted elements, not sure if this will work) and the whole idea is recording everything live (it is a live stream from a camera) so I can't record sound seperatly.
Is any of this possible on Processing?
Thanks a lot,
Leave a comment on Chrisir's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic