Comments (3)
Stil failing with Processing 3.1.1 on Windows 8.1
May be related but displaying cam inside a PGraphics also fails in P2D:
import processing.video.*;
Capture video;
PGraphics pg;
void setup() {
size(320, 240, P2D);
video = new Capture(this, width, height);
video.start();
pg = createGraphics(width, height);
pg.beginDraw();
pg.background(255, 0, 0);
pg.endDraw();
}
void draw() {
if (video.available()) {
video.read();
pg.beginDraw();
pg.image(video, 0, 0);
pg.endDraw();
}
image( pg, 0, 0);
}
from processing-video.
Still an issue. Maybe some changes to the list method. With cameras[1] the smallest available resolution, it works again.
Tested on Windows 10 Processing 3.3.3
import processing.video.*;
Capture cam;
void setup() {
size(640, 480, P2D);
String[] cameras = Capture.list();
cam = new Capture(this, cameras[1]);
cam.start();
}
void draw() {
if (cam.available() == true) {
cam.read();
}
image(cam, 0, 0, width, height);
cam.loadPixels();
}
from processing-video.
@shiffman Yes, calling loadPixels() with the OpenGL renderer slows down the sketch because image data needs to be copied from GPU memory, so it is not recommended, specially for large resolutions,
from processing-video.
Related Issues (20)
- Can't capture webcam pixel when switch to P3D, everything turns black HOT 7
- video capture causes `GStreamer-CRITICAL` error on Apple Silicon (M1) HOT 6
- video library HOT 3
- myMovie.time() returns incorrect value HOT 1
- camera on macOS HOT 1
- Can not use in RPI4? HOT 2
- Gstreamer shared libraries not found; Ubuntu HOT 2
- linux: no symlinks for libraries HOT 2
- Need to seek a movie using the scroll wheel
- Video library(capture) not working when exporting the application (Windows)
- GstBus infinite threads can lead to crash
- movieEvent bug in combination with mipmaps HOT 1
- libffi.so.7 missing from linux libs
- Processing exits without error message on invalid file name with P2D or P3D HOT 2
- video library not working on debian 12: "Unable to load library 'avresample'" and other error messages HOT 8
- importing existing gst library in library folder produce Error HOT 1
- Using the video library outside the pde
- bug in parseCaps
- OSX 14.4.1 Sonoma upgrade breaks USB webcams - seems to be an issue with Java/Processing video library HOT 4
- Current GStreamer not detecting OBS virtual cams
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from processing-video.