-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
video capture causes GStreamer-CRITICAL
error on Apple Silicon (M1)
#208
Comments
until video library is update to 2.2 release (assuming your using 2.2.1) |
Thanks for the tip! In a post on the Processing forum, @neilcsmith-net suggested the following for cross platform compatibility. It worked for me on macOS. cam = new Capture(this, 640, 480, "pipeline:autovideosrc ! video/x-raw, width=640, height=480, framerate=30/1"); |
The following works too (also suggested by @neilcsmith-net) cam = new Capture(this, 640, 480, "pipeline:autovideosrc"); Note: this one needs some tweaks to avoid the image getting stretched (see below). I'm not sure how to do that so if you have a solution, let me know. Then we can just fix the code examples. |
@SableRaf actually, looking at this that's already the default https://github.com/processing/processing-video/blob/master/src/processing/video/Capture.java#L496 Should just leave the whole For the stretching, this is likely due to missing |
Not sure if this is of any help, but I had the same issue with, and no previous fixes worked. In the past I've been able to get around this error with OBS Virtual Camera, but no longer. But the app Camera Graph (in the mac os app store) works similarly to OBS and I was able to share the camera through there and connect to the virtual camera in Processing. For me the pipeline:autovideosrc didn't work either with Sonoma and Processing 4.3 (intel or silicon version). |
Hi Raph, this issue has reared its ugly head again in MacOS 14.5 and I found that the only thing that actually worked was |
More context for this solution here (how to select inputs, etc) |
Description
Attempting to initialize camera capture on Apple Silicon causes a critical error in GStreamer. On an Intel Mac, the same issue does not happen. Note: this issue has been mentioned on the forum here.
Expected Behavior
The camera capture should be initiated without errors.
Current Behavior
A critical error is raised and the camera capture can not be initiated. See below:
Steps to Reproduce
Below is a stripped down version of the example that still triggers the error. The error doesn't happen if you comment out
cam = new Capture(this, cameras[0]);
Your Environment
Possible Causes / Solutions
Unknown
The text was updated successfully, but these errors were encountered: