jackluke23

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • in reply to: Peggy 2 Video stream (webcam) #21588
    jackluke23
    Participant

    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. 
    in reply to: Peggy 2.0 Audio spectrum analyzer #21500
    jackluke23
    Participant

    I also found this video on Youtube of spectrum analyser working on the peggy, but i couldn’t find the code he used 


    in reply to: Peggy 2.0 Audio spectrum analyzer #21499
    jackluke23
    Participant

    Hi 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,
    in reply to: Problem with sketch MIRROR PEGGY 3 #21314
    jackluke23
    Participant

    Hey,

    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!
    Jack
    in reply to: Peggy 2 Video stream (webcam) #21585
    jackluke23
    Participant

    Ok 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.AppAPI
    at 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 Windell
    Cheers 
    in reply to: Peggy 2 Video stream (webcam) #21583
    jackluke23
    Participant

    Also, 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!
    Jack
    in reply to: Peggy 2 Video stream (webcam) #21582
    jackluke23
    Participant

    Bingo!  

    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. 
Viewing 7 posts - 1 through 7 (of 7 total)