# Libraries

**URL:** https://discourse.processing.org/c/processing/processing-libraries/19.md?page=17

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

**Page:** 18

---

## [DropTarget in PSurface](https://discourse.processing.org/t/droptarget-in-psurface/37616)

<div class="topic-metadata">

**Author:** [@TimeLex](https://discourse.processing.org/u/TimeLex)\
**Replies:** 2\
**Last updated:** [June 18, 2022, 4:45pm UTC](https://discourse.processing.org/t/droptarget-in-psurface/37616 "2022-06-18T16:45:56Z")

</div>

Hi I want my processing surface to receive drag and drop input like the DropTarget in Java. For example, if I grab an item from the desktop and release my mouse over the processing window, I want to get the path of the …

---

## [OpenCV 4 Upgrade](https://discourse.processing.org/t/opencv-4-upgrade/27640)

<div class="topic-metadata">

**Author:** [@cansik](https://discourse.processing.org/u/cansik)\
**Replies:** 1\
**Last updated:** [June 17, 2022, 3:25pm UTC](https://discourse.processing.org/t/opencv-4-upgrade/27640 "2022-06-17T15:25:20Z")

</div>

I just recently upgraded OpenCV for Processing to version 4.4.0. It uses the pre-compiled binaries provided by the javacpp project and thus supports every major operating system as well as armhf & arm64. All the example…

---

## [Amazonaws library: how to include it?](https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419)

<div class="topic-metadata">

**Author:** [@Manfre](https://discourse.processing.org/u/Manfre)\
**Replies:** 4\
**Last updated:** [June 17, 2022, 12:56pm UTC](https://discourse.processing.org/t/amazonaws-library-how-to-include-it/37419 "2022-06-17T12:56:47Z")

</div>

Hello. I am not a programmer but I often use Processing. Now I am trying to use the amazonaws library with very bad results. First of all I built the folder structure to store the 3 files named “aws-iot-device-sdk-java.j…

---

## [Program works on Processing editor but not webpage](https://discourse.processing.org/t/program-works-on-processing-editor-but-not-webpage/37412)

<div class="topic-metadata">

**Author:** [@zellwd](https://discourse.processing.org/u/zellwd)\
**Replies:** 1\
**Last updated:** [June 12, 2022, 3:49am UTC](https://discourse.processing.org/t/program-works-on-processing-editor-but-not-webpage/37412 "2022-06-12T03:49:33Z")

</div>

Hi there, I have this .pde program that works perfectly on the Processing software, but when I add it to a webpage it just appears as a black canvas. I already tried converting it to p5.js but it’s just way too complica…

---

## ["String Index Out Of Bounds Exception: String index out of range: -1907998" Unknow error](https://discourse.processing.org/t/string-index-out-of-bounds-exception-string-index-out-of-range-1907998-unknow-error/37372)

<div class="topic-metadata">

**Author:** [@DybaTube](https://discourse.processing.org/u/DybaTube)\
**Replies:** 1\
**Last updated:** [June 6, 2022, 7:13pm UTC](https://discourse.processing.org/t/string-index-out-of-bounds-exception-string-index-out-of-range-1907998-unknow-error/37372 "2022-06-06T19:13:58Z")

</div>

please format code with \</\> button \* homework policy \* asking questions I am trying to import my p5js code to processing, its almost working, but when i try to load the program it cames this error: StringIndexOutOfB…

---

## [Meter library m.updateMeter() only int type](https://discourse.processing.org/t/meter-library-m-updatemeter-only-int-type/32070)

<div class="topic-metadata">

**Author:** [@processing\_user](https://discourse.processing.org/u/processing_user)\
**Replies:** 5\
**Last updated:** [June 6, 2022, 5:07pm UTC](https://discourse.processing.org/t/meter-library-m-updatemeter-only-int-type/32070 "2022-06-06T17:07:35Z")

</div>

hi, I wanted to use the meter library but seems like the meter m.updateMeter() can only work with integer int type but I have float value and needed to display float values. How can I make it work? thank you

---

## [Find absolute path of the libraries folder from within a library?](https://discourse.processing.org/t/find-absolute-path-of-the-libraries-folder-from-within-a-library/37210)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 3\
**Last updated:** [May 31, 2022, 6:35am UTC](https://discourse.processing.org/t/find-absolute-path-of-the-libraries-folder-from-within-a-library/37210 "2022-05-31T06:35:10Z")

</div>

I’m currenty writing a library for using Quantum annealers with processing. However run programs on these I need my library to run python scripts and for that I first need my library to be able to find them. Is there a…

---

## [How to UDP broadcast?](https://discourse.processing.org/t/how-to-udp-broadcast/37162)

<div class="topic-metadata">

**Author:** [@bigboss97](https://discourse.processing.org/u/bigboss97)\
**Replies:** 6\
**Last updated:** [May 29, 2022, 8:01am UTC](https://discourse.processing.org/t/how-to-udp-broadcast/37162 "2022-05-29T08:01:40Z")

</div>

I’m new in network programming. I want to broadcast UDP message. I installed the UDP library from Stephane Cousot and found following code: import hypermedia.net.\*; UDP udp; // define the UDP object /\*\* \* init \*/ v…

---

## [MySQL with Beziersql](https://discourse.processing.org/t/mysql-with-beziersql/37129)

<div class="topic-metadata">

**Author:** [@AdmiralPenguin2](https://discourse.processing.org/u/AdmiralPenguin2)\
**Replies:** 1\
**Last updated:** [May 27, 2022, 11:23am UTC](https://discourse.processing.org/t/mysql-with-beziersql/37129 "2022-05-27T11:23:37Z")

</div>

Hi, I’m trying to use Processing with MySQL using the BezierSQL library but it isn’t working. I entered the password, user, database, and host correctly and it still says SQL.connect(): Could not connect to the database …

---

## [I need help with the background music](https://discourse.processing.org/t/i-need-help-with-the-background-music/37115)

<div class="topic-metadata">

**Author:** [@Katharina](https://discourse.processing.org/u/Katharina)\
**Replies:** 3\
**Last updated:** [May 26, 2022, 2:25pm UTC](https://discourse.processing.org/t/i-need-help-with-the-background-music/37115 "2022-05-26T14:25:34Z")

</div>

Hello, so I made a game but the background music isn’t working.( I’ve only copied the sound problem tho) I’ve used another sound before and it works perfectly fine but the background music won’t work. If I play my progra…

---

## [Question for PeasyCam: Auto positioning](https://discourse.processing.org/t/question-for-peasycam-auto-positioning/23867)

<div class="topic-metadata">

**Author:** [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Replies:** 2\
**Last updated:** [May 26, 2022, 4:55am UTC](https://discourse.processing.org/t/question-for-peasycam-auto-positioning/23867 "2022-05-26T04:55:19Z")

</div>

Hello all, I have a question to Peasycam I‘d like to zoom and pan the cam during an animation to the area where something happens. Think of an animation of a game of chess where the board is so big that the camera wand…

---

## [Connecting to a Server](https://discourse.processing.org/t/connecting-to-a-server/36802)

<div class="topic-metadata">

**Author:** [@Leoperix03](https://discourse.processing.org/u/Leoperix03)\
**Replies:** 2\
**Last updated:** [May 24, 2022, 8:49pm UTC](https://discourse.processing.org/t/connecting-to-a-server/36802 "2022-05-24T20:49:21Z")

</div>

Hi, I want to learn about the Client class for processing because I want to build a console to communicate with other people, the problem is that I do not have a server that I can use. Online I found that you can technic…

---

## [Problem with arraylist (and PureData)](https://discourse.processing.org/t/problem-with-arraylist-and-puredata/37008)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 2\
**Last updated:** [May 24, 2022, 3:17pm UTC](https://discourse.processing.org/t/problem-with-arraylist-and-puredata/37008 "2022-05-24T15:17:04Z")

</div>

We are trying to create something like this pic and we are using the voice (PureData)

---

## [Leap Motion Library problems](https://discourse.processing.org/t/leap-motion-library-problems/21401)

<div class="topic-metadata">

**Author:** [@Ablah](https://discourse.processing.org/u/Ablah)\
**Replies:** 3\
**Last updated:** [May 23, 2022, 7:57pm UTC](https://discourse.processing.org/t/leap-motion-library-problems/21401 "2022-05-23T19:57:28Z")

</div>

I’m trying to use the Leap Motion for school homework. I downloaded the library from Github and added it to the Processing Libraries. I’m using: Processing 3.2.3 Leap Motion Software 2.3.1+31549 At first, it seems to…

---

## [Video library simply missing?](https://discourse.processing.org/t/video-library-simply-missing/36963)

<div class="topic-metadata">

**Author:** [@esc746](https://discourse.processing.org/u/esc746)\
**Replies:** 8\
**Last updated:** [May 22, 2022, 12:54pm UTC](https://discourse.processing.org/t/video-library-simply-missing/36963 "2022-05-22T12:54:38Z")

</div>

Running latest processing 4.0b8, reinstalled moments ago. Windows 10 64-bit. import processing.video.\*; Movie vid1; Results in this error: “No library found for processing.video” In the Contribution Manager the video…

---

## [Can't import library](https://discourse.processing.org/t/cant-import-library/36951)

<div class="topic-metadata">

**Author:** [@tati1202](https://discourse.processing.org/u/tati1202)\
**Replies:** 2\
**Last updated:** [May 21, 2022, 6:16pm UTC](https://discourse.processing.org/t/cant-import-library/36951 "2022-05-21T18:16:18Z")

</div>

---

## [Trying to syphon sound from spotify to a sketch](https://discourse.processing.org/t/trying-to-syphon-sound-from-spotify-to-a-sketch/37003)

<div class="topic-metadata">

**Author:** [@yairkass](https://discourse.processing.org/u/yairkass)\
**Replies:** 0\
**Last updated:** [May 21, 2022, 5:36pm UTC](https://discourse.processing.org/t/trying-to-syphon-sound-from-spotify-to-a-sketch/37003 "2022-05-21T17:36:15Z")

</div>

Hey everybody :slight\_smile: I’m testing syphoning sound from my mac to a processing sketch for some audio viz stuff. I installed Sound Siphon and created a new virtual input. When i list my sound devices in processin…

---

## [Copy from source to PGraphics](https://discourse.processing.org/t/copy-from-source-to-pgraphics/36958)

<div class="topic-metadata">

**Author:** [@Luis\_Luethi1](https://discourse.processing.org/u/Luis_Luethi1)\
**Replies:** 2\
**Last updated:** [May 21, 2022, 8:39am UTC](https://discourse.processing.org/t/copy-from-source-to-pgraphics/36958 "2022-05-21T08:39:32Z")

</div>

Hello, I am working on a simple visualization from the slitscan process. I try to copy from an movie input into an PGraphics buffer. When I try it I get the following error when I try to copy in draw. Width (0) and hei…

---

## [Problems with Serial Library](https://discourse.processing.org/t/problems-with-serial-library/36988)

<div class="topic-metadata">

**Author:** [@hbridge](https://discourse.processing.org/u/hbridge)\
**Replies:** 0\
**Last updated:** [May 21, 2022, 3:16am UTC](https://discourse.processing.org/t/problems-with-serial-library/36988 "2022-05-21T03:16:47Z")

</div>

I have a Processing sketch that receives Serial and writes a csv file. It all worked fine on my old Macbook laptop. Maybe OSX 10.10 or something. I got a new laptop (with an Apple chip) and OSX 12.3 and Processing will n…

---

## [Instagram video settings with VideoExport and FFMPEG](https://discourse.processing.org/t/instagram-video-settings-with-videoexport-and-ffmpeg/32759)

<div class="topic-metadata">

**Author:** [@fmiramar0101101](https://discourse.processing.org/u/fmiramar0101101)\
**Replies:** 3\
**Last updated:** [May 19, 2022, 1:43pm UTC](https://discourse.processing.org/t/instagram-video-settings-with-videoexport-and-ffmpeg/32759 "2022-05-19T13:43:55Z")

</div>

Hi everybody! I am trying to export a high resolution animation to Instagram using Video Export but after the upload it is getting heavily compressed. I am using size(1080, 1350) and videoExport.setFrameRate(30). I’ve …

---

## [How to read ProcessBuilder's output stream in controlP5's console in the sketch?](https://discourse.processing.org/t/how-to-read-processbuilders-output-stream-in-controlp5s-console-in-the-sketch/36909)

<div class="topic-metadata">

**Author:** [@dattasaurabh82](https://discourse.processing.org/u/dattasaurabh82)\
**Replies:** 5\
**Last updated:** [May 18, 2022, 1:43am UTC](https://discourse.processing.org/t/how-to-read-processbuilders-output-stream-in-controlp5s-console-in-the-sketch/36909 "2022-05-18T01:43:12Z")

</div>

Intent: Run a shell command from sketch on a keyPress event and show the command’s output in Sketch window. Idea: Use controlp5 GUI library to draw a console in sketch and use println() to print output. Sketch: import…

---

## [Capture of smartphone camera fails](https://discourse.processing.org/t/capture-of-smartphone-camera-fails/36920)

<div class="topic-metadata">

**Author:** [@mario60](https://discourse.processing.org/u/mario60)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 2:00pm UTC](https://discourse.processing.org/t/capture-of-smartphone-camera-fails/36920 "2022-05-17T14:00:07Z")

</div>

import processing.video.\*; Capture cam; Capture cam1; PGraphics pg1; PGraphics pg2; PImage img; PImage img1; void setup() { size(950, 650, JAVA2D); // JAVA2D by default pg1 = createGraphics(width/2, height/2, JAVA2D…

---

## [HELP: How to make slider button](https://discourse.processing.org/t/help-how-to-make-slider-button/36889)

<div class="topic-metadata">

**Author:** [@xie](https://discourse.processing.org/u/xie)\
**Replies:** 5\
**Last updated:** [May 15, 2022, 11:23am UTC](https://discourse.processing.org/t/help-how-to-make-slider-button/36889 "2022-05-15T11:23:57Z")

</div>

hi! How do you make a slider with buttons on each side that control the movement of the pointer? Thanks! @TfGuy44 @CodeMasterX

---

## [G4P Version text](https://discourse.processing.org/t/g4p-version-text/36791)

<div class="topic-metadata">

**Author:** [@myupctoys](https://discourse.processing.org/u/myupctoys)\
**Replies:** 1\
**Last updated:** [May 13, 2022, 5:06pm UTC](https://discourse.processing.org/t/g4p-version-text/36791 "2022-05-13T17:06:19Z")

</div>

Hi, Probably a question/comment for Quarks. I noticed a change in the version details on launching G4P library, looks a bit messy. I’m using V4.3.2 G4P in intellj for one project and I get a launch message such as this…

---

## [SerialEvent not called (after the first 100-300 times)](https://discourse.processing.org/t/serialevent-not-called-after-the-first-100-300-times/36832)

<div class="topic-metadata">

**Author:** [@jango\_fx](https://discourse.processing.org/u/jango_fx)\
**Replies:** 1\
**Last updated:** [May 11, 2022, 11:09pm UTC](https://discourse.processing.org/t/serialevent-not-called-after-the-first-100-300-times/36832 "2022-05-11T23:09:02Z")

</div>

is it me? or Processing 4? or macOS 12? i’m trying to read serial data not in draw() but in serialEvent() – which worked fine in the past. but serialEvent() is only called about 100-300 times in the very first seconds …

---

## [Is it possible to use GStreamer v 1.20.2 instead of GStreamer 1.16.2 the P4 video library (4.2.1)? How could one do this?](https://discourse.processing.org/t/is-it-possible-to-use-gstreamer-v-1-20-2-instead-of-gstreamer-1-16-2-the-p4-video-library-4-2-1-how-could-one-do-this/36829)

<div class="topic-metadata">

**Author:** [@JSGauthier](https://discourse.processing.org/u/JSGauthier)\
**Replies:** 0\
**Last updated:** [May 11, 2022, 6:07pm UTC](https://discourse.processing.org/t/is-it-possible-to-use-gstreamer-v-1-20-2-instead-of-gstreamer-1-16-2-the-p4-video-library-4-2-1-how-could-one-do-this/36829 "2022-05-11T18:07:53Z")

</div>

Does anyone know if one can use GStreamer v 1.20.2 instead of GStreamer 1.16.2 for Processing 4.08b? (video library 4.2.1). https://gstreamer.freedesktop.org/releases/1.20/#1.20.2 bugfixes include: \*\*\* nvh264dec, nvh26…

---

## [Beads - Add timeout when an audio ends](https://discourse.processing.org/t/beads-add-timeout-when-an-audio-ends/36717)

<div class="topic-metadata">

**Author:** [@Alumno51](https://discourse.processing.org/u/Alumno51)\
**Replies:** 1\
**Last updated:** [May 10, 2022, 8:58pm UTC](https://discourse.processing.org/t/beads-add-timeout-when-an-audio-ends/36717 "2022-05-10T20:58:27Z")

</div>

Hello everyone, I want the audio to be reproduced in loop, but between loops, I need a timeout. I tried coding “delay(1000);” but it influences the rest of the code. In case anyone is wondering what I want to do: I wa…

---

## [Feedback for utility-library](https://discourse.processing.org/t/feedback-for-utility-library/36762)

<div class="topic-metadata">

**Author:** [@NumericPrime](https://discourse.processing.org/u/NumericPrime)\
**Replies:** 0\
**Last updated:** [May 7, 2022, 5:02pm UTC](https://discourse.processing.org/t/feedback-for-utility-library/36762 "2022-05-07T17:02:17Z")

</div>

I have written a utility library and uploaded it on GitHub. Before I’m making any steps towards publishing it I would try to get some feedback. The library can be downloaded with the link: Just put the folder inside t…

---

## [Cannot load .dylib in Processing 4?](https://discourse.processing.org/t/cannot-load-dylib-in-processing-4/36692)

<div class="topic-metadata">

**Author:** [@bananana](https://discourse.processing.org/u/bananana)\
**Replies:** 1\
**Last updated:** [May 4, 2022, 7:01am UTC](https://discourse.processing.org/t/cannot-load-dylib-in-processing-4/36692 "2022-05-04T07:01:00Z")

</div>

I made a library that loads a .dylib file and calls some functions from it. Since the upgrade to Processing 4, the library can’t find the dylib and throws an error when trying to load it: UnsatisfiedLinkError: Unable to…

---

## [Export Application video not working](https://discourse.processing.org/t/export-application-video-not-working/30363)

<div class="topic-metadata">

**Author:** [@abatllei](https://discourse.processing.org/u/abatllei)\
**Replies:** 17\
**Last updated:** [May 3, 2022, 8:49pm UTC](https://discourse.processing.org/t/export-application-video-not-working/30363 "2022-05-03T20:49:34Z")

</div>

So I have to play two videos on my sketch and when I run it on Processing it works well, but when I export the application, it doesn’t work at all. Even the program seems not to be running. Grey screen. I’m on OSX 10.14…

[Previous page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=16)

[Next page](https://discourse.processing.org/c/processing/processing-libraries/19.md?page=18)
