Forum Replies Created
Viewing 7 posts - 1 through 7 (of 7 total)
-
AuthorPosts
-
jackluke23Participant
Yes, there is a bug with the processing version 2.1.1 video library on windows. It wont be fixed until version 2.1.2.
I just reinstalled 2.1.0 and it worked.jackluke23ParticipantI also found this video on Youtube of spectrum analyser working on the peggy, but i couldn’t find the code he used
jackluke23ParticipantHi again Windell,
Iv made some progress on the issue, mirror Peggy works very well and am delighted with it. At the moment im trying to display the input from my laptops microphone on my Peggy. I found this code which works well and clearly shows the different levels. Im just not too sure on how to modify it to send or mirror it to the Peggy, this is the code….import krister.Ess.*;FFT myfft;AudioInput myinput;int bufferSize=512;void setup() {size(532,400);frameRate(30);background(255);noStroke();fill(0);Ess.start(this);myinput=new AudioInput(bufferSize);myfft=new FFT(bufferSize*2);myinput.start();myfft.damp(.3);myfft.equalizer(true);myfft.limits(.005,.05);}void draw() {background(255);for (int i=0; i<bufferSize;i++) {rect(i+10,390,1,myfft.spectrum*-400);}}public void audioInputData(AudioInput theInput) {myfft.getSpectrum(myinput);}Any help you could give me would be much appreciated as always,Below is the link to where i found the code,jackluke23ParticipantHey,
Is there any chance you could post your edited mirror peggy sketch code here?Im trying to do the same as you but having issues,Thank you!Jackjackluke23ParticipantOk thanks, i’ll check out the other topics in the forums.
Unfortunatly iv come across another problem, the black screen is back, and it wont stream to the peggy, this is the error im getting. As far as i know i havnt changed anything…JNA: Callback org.gstreamer.elements.AppSink$2@47c988f threw the following exception:java.lang.NoClassDefFoundError: Could not initialize class org.gstreamer.lowlevel.AppAPIat org.gstreamer.elements.AppSink.gst(AppSink.java:38)at org.gstreamer.elements.AppSink.pullBuffer(AppSink.java:128)at org.gstreamer.elements.RGBDataAppSink$AppSinkNewBufferListener.newBuffer(RGBDataAppSink.java:144)at org.gstreamer.elements.AppSink$2.callback(AppSink.java:184)at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)at java.lang.reflect.Method.invoke(Unknown Source)at com.sun.jna.CallbackReference$DefaultCallbackProxy.invokeCallback(CallbackReference.java:455)at com.sun.jna.CallbackReference$DefaultCallbackProxy.callback(CallbackReference.java:485)Not sure what gstreamer is….Thanks again for your help WindellCheersjackluke23ParticipantAlso, i was wondering if it would be possible to play a video/ mp4 onto the peggy? i presume editing some of the mirrorpeggy code would be necessary. Prehaps replace the ‘capture video;’ line with something else relating to the directory of the mp4?
Thanks a million for your help!Jackjackluke23ParticipantBingo!
Thanks Windell!It gave me an error at first..”the requested resolution of 320×240,15/1fps is not supported by the selected capture device”Does that mean i need a better camera? I changed 15 to 10 and it worked. Would have liked 15 though. -
AuthorPosts
Viewing 7 posts - 1 through 7 (of 7 total)