I'm trying to work with huffyuv encoded video in a sketch but haven't had any success so far. In fact I've been trying and failing for so long now that I thought that before investing any more time into it I should try to find out if this is even possible in Processing?
I had been trying to work with the GSVideo library and so a few months back I emailed Andres and he suggested 'setting up a pipeline from the command line using gst-launch in order to determine if the problem lies in GSVideo or GStreamer itself.'
I have no clue how to go about doing this but I may be able to ask the assistance of some more knowledgeable programmer friends in figuring out how to do this if there's a possibility that this process will help in identifying a way to make huffyuv video draw to screen.
I'm hoping that someone here on the forum has had some success working with huffyuv video in their projects, and if so, could they comment on what their approach was to get the huffyuv video to draw to screen?
I have a few questions about how to improve this code. It's fairly makeshift at the moment and it doesn't function as it needs to. I've stripped out all of the code which isn't integral to the sketch's functionality to make it easier to investigate. Can anyone offer some help or advice?
I'd like the code to react to the space bar being pressed once to begin the recording, but subsequently to not react to it being pressed until the video has played through, the recording is finished and the image is displaying again.
Currently when the space bar is pressed again there is a fragment of audio which plays before resetting to the start of the track although i don't think this will be an issue if there's no way to press space during recording. However, ideally the only event that would cause the recording to stop and the image to display is if the n/N key is pressed during the recording but pressing any other keys, including the space bar, would do nothing. If this functionality can be assigned to n/N, there is still the issue of the audio fragment playing when the space bar is pressed again.
I also need to combine the mp3's audio with the video somehow, hopefully as the recordings are being made. From my research so far this seems unlikely. But perhaps the files can be muxed between recordings? Also will it be possible to record a mic input and add that as an extra audio channel to the video output?
Finally I'd like to know of a method for moving the recorded videos to a timestamped folder and deleting the .#res files when the sketch is closed so that if the sketch crashes for any reason, the videos will not be overwritten accidentally when the sketch is restarted.
I know that there's quite a few questions in here but some assistance with any aspects of them would be greatly appreciated.
Many Thanks
//-------------------------------------------------------------------------------------------------------------------------------- //------------------------------------/GLOBALS, IMPORT LIBRARIES/------------------------------------------- //-------------------------------------------------------------------------------------------------------------------------------- import codeanticode.gsvideo.*; GSCapture cam; //////////////////////////////////////////////////////////////////////////////////////// import processing.video.*; MovieMaker mm; Movie vid; int numPix; int GridScale = 4; color vidColours[]; //////////////////////////////////////////////////////////////////////////////////////// import ddf.minim.*; Minim minim; AudioPlayer player; float leftVol = 0; float rightVol = 0; //////////////////////////////////////////////////////////////////////////////////////// int sn = 0;//savenumber int fn = 0;//framenumber //////////////////////////////////////////////////////////////////////////////////////// PImage img;
I keep getting OutOFMemoryError messages when I am trying to work with files over approximately 75MB in this sketch. I have tested on Windows Vista x32 with 3GB RAM, and on Windows 7 x64 with 16GB RAM so it's clearly not an issue with the available memory. (Also I can't increase available memory above 1600MB in Processing Preferences or my sketches wont run on either system.) I haven't been able to find a solution to this problem. Can anyone offer insight as to why this is happening? My guess is it must be a limitation with Java's ability to access memory..? If anyone can suggest workarounds to this issue then I'd be very grateful.
Hi all, I've been digging around the forums and OpenProcessing in search of some code which would allow me to navigate around a wireframe sphere with visible nodes/vertices, a Bucky Ball structure would be ideal as it's for a school project which relates to Buckminster Fuller. Thought this would have been an easy one to find but I've been struggling. Could anyone point me to a link for a sketch that would achieve this or perhaps share some code here?