Live camera and Csound
Date | 2017-06-12 00:17 |
From | luis antunes pena |
Subject | Live camera and Csound |
Dear all, I'm looking for a solution to connect a live-camera to csound,
something similar to pix_video in pure data. What would be your
solution to use a live-camera with csound? Thanks inadvance for you suggestions, Luís |
Date | 2017-06-12 00:28 |
From | Michael Gogins |
Subject | Re: Live camera and Csound |
HTML5 and Csound should work, either Csound.node or Csound for Android or Csound for WebAssembly. You would access the video using JavaScript which also can call the Csound API. You could even use GLSL shaders to add effects to the video. Regards, Mike On Jun 11, 2017 19:17, "luis antunes pena" <antunespena@web.de> wrote:
|
Date | 2017-06-12 05:59 |
From | Matti Koskinen |
Subject | Re: Live camera and Csound |
On 12.06.2017 02:17, luis antunes pena
wrote:
I once wrote a test code with OpenCV tracking object in the video frame and sending OSC-messages to csound. I can put the in Github, if there's any interest. best -m |
Date | 2017-06-12 08:43 |
From | Alex Hofmann |
Subject | Re: Live camera and Csound |
Hi Luis, it's some years ago (2008), when I used openframeworks (http://openframeworks.cc) for the video processing, it is a powerful environment including several detection algorithms, and the CsoundAPI (https://github.com/csound/csoundAPI_examples/tree/master/cpp) for sound processing. However, I would recommend you find a tool which does the image/video processing you need and then integrate Csound with its API to as the sound engine. Best, Alex
|
Date | 2017-06-12 09:11 |
From | Eduardo Moguillansky |
Subject | Re: Live camera and Csound |
I second the recommendation of using a dedicated tool. I use openframeworks to process live video from a camera, communicating via OSC with csound. It is well supported in linux and osx. I have used processing, which has the same backend as openframeworks (gstreamer) and it also works quite reliably, with the added bonus that your code can be run in another OS without compilation. If you are using opengl calls then the efficiency is similar. On Montag, 12. Juni 2017 09:43:21 CEST, Alex Hofmann wrote: > Hi Luis, > > it's some years ago (2008), when I used openframeworks > (http://openframeworks.cc) for the video processing, it is a > powerful environment including several detection algorithms, and > the CsoundAPI > (https://github.com/csound/csoundAPI_examples/tree/master/cpp) > for sound processing. > > However, I would recommend you find a tool which does the > image/video processing you need and then integrate Csound with > its API to as the sound engine. > > Best, > Alex > > Am 12.06.2017 um 06:59 schrieb Matti Koskinen |
Date | 2017-06-12 09:11 |
From | Richard van Bemmelen |
Subject | Re: Live camera and Csound |
You could also use Processing, it has support for OSC too. 2017-06-12 9:43 GMT+02:00 Alex Hofmann <ahah@gmx.net>:
|
Date | 2017-06-13 00:29 |
From | luis antunes pena |
Subject | Re: Live camera and Csound |
Thank you so much for all answers! It looks simpler for me to try out now the solution with processing and OSC. But since I'll need real-time stability, using the csound API sounds like the most reliable and stable solution. All the best, Luís Am 12.06.17 um 09:11 schrieb Richard
van Bemmelen:
|
Date | 2017-06-13 08:53 |
From | Rory Walsh |
Subject | Re: Live camera and Csound |
It's also trivial to us Csound directly in processing using Csoundo. On 13 Jun 2017 12:29 a.m., "luis antunes pena" <antunespena@web.de> wrote:
|
Date | 2017-06-13 11:32 |
From | luis antunes pena |
Subject | Re: Live camera and Csound |
Thanks Rory, I was trying to install csoundo but I'm unsure where
to find core.jar since the directory */processing*/core/library/
doesn't exist. PROCESSING_LIB=/home/rory/sourcecode/processing-2.2.1/core/library/core.jar Luís
Am 13.06.17 um 08:53 schrieb Rory
Walsh:
|
Date | 2017-06-13 11:43 |
From | Rory Walsh |
Subject | Re: Live camera and Csound |
Hmm, it's been a while since I tried this out. Are you following the instructions from here: On 13 June 2017 at 11:32, luis antunes pena <antunespena@web.de> wrote:
|
Date | 2017-06-13 11:47 |
From | luis antunes pena |
Subject | Re: Live camera and Csound |
yes, I downloaded the zip file from there. The directory csound has this directories (no csoundo/processing
directory): README examples icons library
reference src Am 13.06.17 um 11:43 schrieb Rory
Walsh:
|
Date | 2017-06-13 11:48 |
From | Rory Walsh |
Subject | Re: Live camera and Csound |
What OS are you using? On 13 June 2017 at 11:47, luis antunes pena <antunespena@web.de> wrote:
|
Date | 2017-06-13 11:51 |
From | luis antunes pena |
Subject | Re: Live camera and Csound |
I'm on OSX 10.12.5 Am 13.06.17 um 11:48 schrieb Rory
Walsh:
|
Date | 2017-06-13 11:56 |
From | Rory Walsh |
Subject | Re: Live camera and Csound |
Did you follow the build instructions? You need to build it first before you can use it. The instructions are on that page. On 13 June 2017 at 11:51, luis antunes pena <antunespena@web.de> wrote:
|
Date | 2017-06-13 12:25 |
From | luis antunes pena |
Subject | Re: Live camera and Csound |
Yes, I was stuck in this point, editing the make.sh file: 2) cd to the src directory of the csoundo folder and edit the
make.sh file The problem is I can't find the file core.jar. Am I missing something?
Am 13.06.17 um 11:56 schrieb Rory
Walsh:
|
Date | 2017-06-13 12:35 |
From | Rory Walsh |
Subject | Re: Live camera and Csound |
It lives in the Processing app. Here are the contents of my make.sh, it uses standard paths so should probably work for you too, just copy and replace.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
echo "BUILD SCRIPT FOR CSOUNDO." echo "" echo "PLEASE EDIT THE SCRIPTS VARIABLES" echo "SO THAT IT USES THE CORRECT PATH" PROCESSING_LIB=/Applications/Processing.app/Contents/Java/core.jar CSOUND_LIB=/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/Java/csnd6.jar javac -classpath $PROCESSING_LIB:$CSOUND_LIB -d . *.java jar -cf ../library/csoundo.jar ./csoundo/*.class |
Date | 2017-06-13 15:02 |
From | luis antunes pena |
Subject | Re: Live camera and Csound |
Thanks Rory, this is what I was looking for. Now when I try to
run ./make.sh I get this error. Do you know what could be the
problem? [rednoise:~/Documents/csoundo-master/src] luis% ./make.sh Am 13.06.17 um 12:35 schrieb Rory
Walsh:
|
Date | 2017-06-13 16:47 |
From | Steven Yi |
Subject | Re: Live camera and Csound |
You may try updating your Java JDK version to the latest. (Seems like the processing library was compiled with a later version of Java than what you may have there.) On Tue, Jun 13, 2017, 7:02 AM luis antunes pena <antunespena@web.de> wrote:
|
Date | 2017-06-13 17:58 |
From | luis antunes pena |
Subject | Re: Live camera and Csound |
My Java version is the latest Java 8-Upadate 131 and I'm running
processing version 3.3.4. Am 13.06.17 um 16:47 schrieb Steven Yi:
You may try updating your Java JDK version to the latest. (Seems like the processing library was compiled with a later version of Java than what you may have there.) |