Exporting Audio and Video with Beads
in
Contributed Library Questions
•
1 year ago
Hey there
I have made a sketch with animation and music with the Beads library. I am trying to export it but the audio stream is strangely longer than the the video.
I am on OS X 10.5.8, using Processing 1.5.1
To make the video I call createFrame("export-####.jpg"); in draw(), then I use a free program Time Lapse Assembler which gives me a .mov.
For the audio I am using a RecordToSample beads object and writing the audio to a file using the method described by Evan Mertz in Sonifying Processing (great book btw).
But, if the movie is say 10 seconds, the audio will be like 17 seconds. I've tried different settings (sample rates etc) but yet to work out what I am doing wrong.
I've seen this post as well
http://computermusicblog.com/blog/2012/01/07/how-to-render-synchronous-audio-and-video-in-processing-using-beads/ which is cool but I can't seem to use the MoveMaker library on os x, there seems to be a problem with quicktime and java support. I get this error:
java.lang.UnsatisfiedLinkError: quicktime.QTSession.Gestalt(I[I)S
and I have tried using different versions of Java, the solution also seems to be to use 32 bit java, but! I also get this message when I start any processing sketch:
Cannot run Java in 32 bit mode. Continuing in 64 bit mode.
Which so far has not actually caused any material problems.
So, if anyone has any ideas please let me know! Ideally I could just render the audio at the correct length then I can put the movie and audio together using Live or something.
1