I have some code I have scrubbed together, it works on my Mac but kills my Raspberry Pi with a not enough memory error. I can see with activity monitor on my Mac that the program does indeed eat 600mb of ram! I am just cycling 5 images.

The Pi can't get past the second line in Void setup() where the image is scaled with .resize. Tried adding some delays to no effect

I know it could be simplified, but had to fudge this together to get it to work - I have been working a little with the Image Handling tutorials on this site, but i'm not sure how useful getting into the pixel manipulation will be.

```
PImage img1, img2, img3, img4, img5;
int a = 0;
int imgCounter = 0;
void setup() {
size(640, 480);
img1 = loadImage("001.jpg");
img1.resize(width, height);
img2 = loadImage("002.jpg");
img2.resize(width, height);
img3 = loadImage("003.jpg");
img3.resize(width, height);
img4 = loadImage("004.jpg");
img4.resize(width, height);
img5 = loadImage("005.jpg");
img5.resize(width, height);
frameRate(30);
delay(1000);
}
void draw() {
background(0);
tint(255, a);
if(imgCounter == 0) {
background(img5);
image(img1, 0, 0);
}
else if(imgCounter == 1) {
background(img1);
image(img2, 0, 0);
}
else if(imgCounter == 2) {
background(img2);
image(img3, 0, 0);
}
else if(imgCounter == 3) {
background(img3);
image(img4, 0, 0);
}
else if(imgCounter == 4) {
background(img4);
image(img5, 0, 0);
}
a++;
if(a == 255) {
imgCounter++;
a = 0;
}
if(imgCounter == 5) {
imgCounter = 0;
}
}
```

]]>I am working on a Raspberry PI project that should include a sharp distance sensor. As this sensor is analog I have to convert the analog data to digital with a converter IC via SPI. I have to be honest! How to communicate with this kind of chip is rocket science to me as it includes bit shifting, etc. I tried to be "smart" and use the SPI sketch that comes with the I/O examples, but this one uses the MCP3001. As expected that did not work. On the web I found several projects using the MCP3008 but with python.Unfortunately I cannot manage to translate that to processing. Can anybody help or has even already written something for the MCP3008!? Here you can find the python script for the chip: https://learn.adafruit.com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi/script

Would be great if anybody could help! Thank You!

]]>Would switching to a more current coding system like processing.js, p5.js or processing.py help?

Any advice would be appreciated.

]]>I've a modified version of PixelArrayCapture below - the original example in the GLVideo library is linked here. https://github.com/gohai/processing-glvideo/tree/master/examples/PixelArrayCapture

```
import gohai.glvideo.*;
GLCapture video;
void setup() {
// size(320, 240, P2D);
fullScreen(P3D,1);
// size(1024, 768, P3D);
noStroke();
// this will use the first recognized camer
video = new GLCapture(this);
video.play();
}
void draw() {
background(0);
if (video.available()) {
video.read();
}
image(video, 0, 0, width, height);
println(video.width, video.height, width, height);
color center;
// center = video.get(video.width/2, video.height/2);
// fill(center);
// ellipse(width/2, height/2, 125, 125);
// alternatively, the pixel value can also be read like this:
if (0 < video.width) {
video.loadPixels();
println("dims", video.width, video.height, width, height);
center = video.pixels[video.height/2*video.width + video.width/2];
}
}
```

]]>Ken

]]>I am trying to use a USB webcam with Processing 3 on a Raspberry PI 2.

This is using the preinstalled version from the Processing raspian disturbution(processing-3.0.1-linux-raspbian.zip, 2015-09-24-raspbian-jessie.img).

Using the Contribution Manager I've installed the video library, but I am getting an error using an USB webcam:

```
No such Gstreamer factory: v4l2src
```

I can see the camera showing up at `/dev/video0`

and after installing gstreamer1.0 and gstreamer1.0-tools I can open the camera:

```
gst-launch-1.0 v4l2src ! videoconvert ! ximagesink
```

Using `v4l2-ctl --list-formats-ext`

yelds:

```
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUV 4:2:2 (YUYV)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x176
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 544x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 752x416
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x544
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1184x656
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
Interval: Discrete 0.133s (7.500 fps)
Interval: Discrete 0.200s (5.000 fps)
Index : 1
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : MJPEG
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 176x144
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x176
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 432x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 544x288
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 640x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 752x416
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x448
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 864x480
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x544
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 960x720
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1024x576
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1184x656
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
Size: Discrete 1280x960
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.040s (25.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Interval: Discrete 0.067s (15.000 fps)
Interval: Discrete 0.100s (10.000 fps)
Interval: Discrete 0.200s (5.000 fps)
```

How can I access the USB camera from Processing on Raspian ?

Thank you, George

]]>thnx for yr help. =]

]]>i dlike to know if there is an example using raspberry pi connected with an mpu6050, both on network, and processing reading tcp values from...

may be i must post in raspberry users..

thanks for yours answers..

again bruno..

]]>I have a really simply app running on a RPI3 it displays a (750kb .png) at full screen(1920x1080) and occasionally draws some ellipses on top of it.

It runs at about 6 fps - is this normal , or am I doing something incorrectly?

Thanks

]]>How to upload the code into my RPI from my computer ?.

I am using RPI library in my processing.

RPI3,

windows 7,

Processing 3.2.3 with installed RPI libs and tools. I got upload to PI option on my tools options.

]]>i tried to use network libraries and i got an error called:

**"the function active() does not exist."**

bad !!

here's the simple code used :

```
import processing.net.*;
Server myServer;
int val = 0;
void setup() {
size(200, 200); // Starts a myServer on port 5204
myServer = new Server(this, 5204);
}
void draw() {
val = (val + 1) % 255;
background(val);
if (myServer.active() == true) {
myServer.write(val);
} else {
println("Server is not active.");
}
}
void mousePressed() {
myServer.stop();
}
```

many thanks for your replies..

bruno.

]]>I was working on my raspberry and wondered if I could use this LED matrix and use it with processing. http://www.banggood.com/MAX7219-Dot-Matrix-MCU-LED-Display-Control-Module-Kit-For-Arduino-p-915478.html?rmmds=buy

I know you can turn on leds and stuff on the Raspberry PI. https://processing.org/reference/libraries/io/index.html

I know how I can hook the LED matrix up with Arduino: https://brainy-bits.com/tutorials/how-to-control-max7219-led-matrix/

And was wondering if it could be directly paired with the Raspberry Pi.

Any help is appreciated!

]]>What part of the code is incompatible / what has to be changed to make it work?

Thanks!

```
/******************************************************************************
Heart_Rate_Display.ino
Demo Program for AD8232 Heart Rate sensor.
Casey Kuhns @ SparkFun Electronics
6/27/2014
https://github.com/sparkfun/AD8232_Heart_Rate_Monitor
The AD8232 Heart Rate sensor is a low cost EKG/ECG sensor. This example shows
how to create an ECG with real time display. The display is using Processing.
This sketch is based heavily on the Graphing Tutorial provided in the Arduino
IDE. http://www.arduino.cc/en/Tutorial/Graph
Resources:
This program requires a Processing sketch to view the data in real time.
Development environment specifics:
IDE: Arduino 1.0.5
Hardware Platform: Arduino Pro 3.3V/8MHz
AD8232 Heart Monitor Version: 1.0
This code is beerware. If you see me (or any other SparkFun employee) at the
local pub, and you've found our code helpful, please buy us a round!
Distributed as-is; no warranty is given.
******************************************************************************/
import processing.serial.*;
Serial myPort; // The serial port
int xPos = 1; // horizontal position of the graph
float height_old = 0;
float height_new = 0;
float inByte = 0;
void setup () {
// set the window size:
size(1000, 400);
// List all the available serial ports
println(Serial.list());
// Open whatever port is the one you're using.
myPort = new Serial(this, Serial.list()[2], 9600);
// don't generate a serialEvent() unless you get a newline character:
myPort.bufferUntil('\n');
// set inital background:
background(0xff);
}
void draw () {
// everything happens in the serialEvent()
}
void serialEvent (Serial myPort) {
// get the ASCII string:
String inString = myPort.readStringUntil('\n');
if (inString != null) {
// trim off any whitespace:
inString = trim(inString);
// If leads off detection is true notify with blue line
if (inString.equals("!")) {
stroke(0, 0, 0xff); //Set stroke to blue ( R, G, B)
inByte = 512; // middle of the ADC range (Flat Line)
}
// If the data is good let it through
else {
stroke(0xff, 0, 0); //Set stroke to red ( R, G, B)
inByte = float(inString);
}
//Map and draw the line for new data point
inByte = map(inByte, 0, 1023, 0, height);
height_new = height - inByte;
line(xPos - 1, height_old, xPos, height_new);
height_old = height_new;
// at the edge of the screen, go back to the beginning:
if (xPos >= width) {
xPos = 0;
background(0xff);
}
else {
// increment the horizontal position:
xPos++;
}
}
}
```

]]>in the glvideo library I get :
`No capture devices found`

In the video library I get:
`There are no cameras available for capture`

I am able to acces the camera and take pictures via terminal and `rapistill -o output.jpg`

, so the camera is working.

Any tips?

]]>Lately, I've been trying to create a mini game with Processing. My goal is to make a sketch which has several questions and answers, and I want the player to make his choice for each. The thing is, I found this code below, which is the game with an ArrayList for the questions, but it can be played with keyPressed, and as far as I'm concerned, I want to make it through Capacitive sensors, which would be placed on certain objets in a room. These sensors would receive the information, and say if it's correct or not. At this point, I'm totally clueless. I've already done this through Pure Data (with sensors as well), my code works great but I don't know how to do it with Processing and Sensors now. I can put the code if needed.

```
ArrayList <Question> questions = new ArrayList();
int indexQuestions = 0;
// the status of the program
final int play=0; // possible status
final int gameOver=1; // possible status
final int feedback=2; // possible status
int status = play; // current status
void setup() {
size(800, 600);
// define all questions
String[] a1 = loadStrings("test.txt");
// println (a1);
for (int i = 0; i<a1.length; i+=4) {
Question currentquestion = new Question( a1[i], a1[i+1], a1[i+2], a1[i+3], 2, 30, 30 );
questions.add(currentquestion);
}
}
void draw() {
background(0);
switch (status) {
case play:
questions.get(indexQuestions).display();
break;
case feedback:
// correct?
if (questions.get(indexQuestions).check(key)) {
text ("Gut", 100, 200);
}
else {
text ("Nein", 100, 200);
} // else
text ("Bitte eine Taste", 100, 300);
break;
case gameOver:
text ( "All questions done.", 200, 200 );
text ( "Press r to restart.", 200, 400 );
break;
} // switch
} // func
// -------------------------------------------
void keyPressed() {
switch (status) {
case play:
if (key>='1' && key <= '3')
{
status=feedback;
}
break;
case feedback:
// any key
// next status
status = play;
// next question
indexQuestions++;
// last question?
if (indexQuestions>questions.size()-1)
{
status = gameOver; // game over
} // if
break;
case gameOver:
if (key == 'r') {
// restart
indexQuestions=0;
status=play;
} // if
break;
default:
// error
break;
} // switch
//
} // func
// ==================================================================
class Question {
String quest;
String answer1, answer2, answer3;
int correctAnswerNumber;
int posX, posY;
// constr
Question (String que,
String answer1temp, String answer2temp, String answer3temp,
int correctAnswerNumberTemp,
int x, int y) {
quest = que;
answer1=answer1temp;
answer2=answer2temp;
answer3=answer3temp;
correctAnswerNumber=correctAnswerNumberTemp;
posX=x;
posY=y;
}
void display() {
text(quest, posX, posY);
text(" 1 "+answer1, posX, posY+22);
text(" 2 "+answer2, posX, posY+44);
text(" 3 "+answer3, posX, posY+66);
text("Please enter a number", posX, posY+94);
} // method
boolean check( char keyToTest ) {
if (keyToTest=='1' && correctAnswerNumber==1) return true;
if (keyToTest=='2' && correctAnswerNumber==2) return true;
if (keyToTest=='3' && correctAnswerNumber==3) return true;
return false;
} // method
//
} // class ================================================================
```

Thank you.

]]>**Is there a 64 bit version of processing for the Raspberry Pi?**

*What I tried*

- First I tried to run OpenCV on the 32 bit version of Raspbian. That didn't work: it said it needed 64 bit.
- So I installed Raspbian Jessie, the 64bit version of Raspbian. But I still got the same message.

Now I'm looking for a 64 bit version of Processing for the Raspberry Pi, but haven't found any details or plans regarding this?

]]>thanks

]]>I ran into a problem when using the Serial library. I have an Arduino program that sends data through the serial transmitter. The arduino is connected to a Raspberry Pi where a processing program collects the data and prints them to a txt-file. The txt-file is overwritten every time there is new data from arduino. With the help of the serial library and Printwriter, this has worked well. Until now...

Now suddenly with each transmission, the writing to the file goes slower and slower. There are no error messages in the processing editor.

Any ideas?

Thanks in advance

]]>The jump() doesnt work for me in the video library when im using processing on Raspberry PI.

Any tips how to solve this or using another library for video? Or another way creating looppoints in video?

I get this errormessage:

#

## A fatal error has been detected by the Java Runtime Environment:

#

## SIGSEGV (0xb) at pc=0x76ecdf4c, pid=1498, tid=1755313248

#

## JRE version: Java(TM) SE Runtime Environment (8.0_51-b07) (build 1.8.0_51-b07)

## Java VM: Java HotSpot(TM) Client VM (25.51-b07 mixed mode linux-arm )

## Problematic frame:

## C [libarmmem.so+0x2f4c]

#

## Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

#

## An error report file with more information is saved as:

## /tmp/hs_err_pid1498.log

got a frame 640 368 true #

## If you would like to submit a bug report, please visit:

## http://bugreport.java.com/bugreport/crash.jsp

## The crash happened outside the Java Virtual Machine in native code.

## See problematic frame for where to report the bug.

# Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help → Troubleshooting.

Heres the sketch:

```
import processing.video.*;
Movie movie;
void setup() {
size(640, 360);
background(0);
// Load and play the video in a loop
movie = new Movie(this, "transit.mov");
movie.loop();
}
void movieEvent(Movie m) {
m.read();
}
void draw() {
//if (movie.available() == true) {
// movie.read();
//}
image(movie, 0, 0, width, height);
}
void keyPressed() {
if (key == 'j') {
movie.jump(1.0);
}
}
```

]]>When I run the GettingStartedCapture with a bit of modified code to work with the downloaded video lib, I get this:

I've verified that the camera is working by following this guide and capturing some still images.

Here is the code I'm using:

```
import processing.video.*;
Capture cam;
void setup(){
size(640,480);
cam = new Capture(this);
cam.start();
}
void draw(){
if(cam.available() == true){
cam.read();
}
image(cam,0,0, width, height);
}
```

p.s. this is on a Raspberry Pi 3 Model B, Pi Camera v2, Raspbian Jessie p.p.s. a usb webcam works fine in YUV

]]>I'm trying to use the glvideo library to play some videos that are located on a webserver. This works fine one my Mac. Though when I use it wit Raspbian I get the following error:

GLVideo: uridecodebin0: No URI handler implemented for "http". Debugging information: gsturidecodebin.c(1427): gen_source_element (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0

And here is the testcode that I'm using.

import gohai.glvideo.*; GLMovie[] videotest = new GLMovie[20];

void setup() { size(500, 500, P2D); videotest[0] = new GLMovie(this, "http://www......mp4"); videotest[0].loop(); }

void draw() { background(0); if (videotest[0].available()) { videotest[0].read(); }

image(videotest[0], 0, 0, width/2, height); }

Do you know if there is any possible way to solve this? Thanks in advance!

]]>I'm trying to configure a multicast network with 3 Raspberry pi. The Raspberry are in the same network (I have configured an access point in one of the Raspberry), with IP 172.25.1.1, 172.25.1.2, 172.25.1.3.

If I write

```
// master.pde (in raspberry 172.25.1.1)
oscP5 = new OscP5(this, "172.25.1.0", 8975);
// client.pde (in raspberry 172.25.1.2 and 172.25.1.3)
oscP5 = new OscP5(this, 8975);
theNetAdress = new NetAddress("172.25.1.1", 8975);
```

It works. In fact, it works incredible well! The sync between the 3 rasp is really good. But, I get the warning - of course - that "172.25.1.0" is not a multicast address. I have tried with 239.0.0.1, etc. and there is no way. It doesn't work.

Any idea?

Thanks!!

]]>Progress so far:

Added the video library and tried:

```
import processing.video.*;
Movie test;
void setup() {
size(1000,1000);
background(0);
test = new Movie(this, "launch1.mp4");
test.loop();
test.volume(0);
}
void movieEvent(Movie m) {
m.read();
}
void draw() {
image(test, 0, 0, width, height);
}
```

All I get is a blank screen. Also tried adding the GL video tool. Then tried the examples that come with it but every time, I get the following error message:

```
libEGL warning: DRI2: failed to authenticate
java.lang.RuntimeException: java.lang.ClassNotFoundException: Failed to find NEWT Display Class <.bcm.vc.iv.DisplayDriver>
at jogamp.newt.DisplayImpl.create(DisplayImpl.java:314)
at com.jogamp.newt.NewtFactory.createDisplay(NewtFactory.java:167)
at com.jogamp.newt.NewtFactory.createDisplay(NewtFactory.java:149)
at processing.opengl.PSurfaceJOGL.initDisplay(PSurfaceJOGL.java:150)
at processing.opengl.PSurfaceJOGL.initFrame(PSurfaceJOGL.java:136)
at processing.core.PApplet.initSurface(PApplet.java:10402)
at processing.core.PApplet.runSketch(PApplet.java:10289)
at processing.core.PApplet.main(PApplet.java:10024)
Caused by: java.lang.ClassNotFoundException: Failed to find NEWT Display Class <.bcm.vc.iv.DisplayDriver>
at jogamp.newt.DisplayImpl.getDisplayClass(DisplayImpl.java:277)
at jogamp.newt.DisplayImpl.create(DisplayImpl.java:285)
... 7 more
```

Im a bit lost now and would really appreciate it if someone could help! Many thanks!

]]>I want to make a Cell Phone Jammer! I heard that Raspberry Pi is better to use than an Arduino. Is this true?

I am also looking for a code, does anyone have that? I would love to turn off every network on the phone!

]]>