-
-
Notifications
You must be signed in to change notification settings - Fork 128
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 not working in Mac OS Catalina (and later) #134
Comments
Some further info on this for anyone willing and able to tackle it. As the Video library is built off GStreamer decided to take a look at that project directly and found a recent commit that adds support of Mac OS X Catalina: Perhaps this is as simple as integrating this new build? |
I'm seeing the same problem, even simple Processing Video example Sketch is not working on Mac OS Catalina. |
I tried to look but can't figure out where to make change in order to integrate the new build of cerbero. |
I am looking forward to catch this bug. |
@codeanticode it looks like you are the primary maintainer of this lib. Any chance Mac OS Catalina will be supported in the future? |
@grauwald Definitely, this is a high-priority issue. I haven't installed Mac OS Catalina yet, so I'm curious if you have tried the latest beta, does it work with it? |
@codeanticode I can confirm that with latest beta build video examples stat working again. There is another issue with samples - you have to pass camera name to Capture constructor). This code: video = new Capture(this, width, height); generates null pointer exception, but video = new Capture(this,320, 240, "FaceTime HD Camera"); works |
Super news. How does an ordinary user get access to this update? (No update available in install library menu...?) |
@codeanticode was able to successfully run the latest beta of v2 of the video library. Yay!!! For those coming along trying to do this, had to do some command line to get OS X to give permissions to run the .dylib used by the lib. Based on this hackish solution here: Jackett/Jackett#5589 (comment) Guessing the final release of this lib will be signed and verified so this security issue in Catalina won't be a problem. |
v2 library works on catalina, thank you @codeanticode How to install
$ xattr -p com.apple.quarantine libavcodec.58.35.100.dylib replace 0081 with 00c1 and copy string then replace STRING in the following command with your string then cd to gstreamer-1.0/ and run command again |
Worked for me. Thanks! |
Thanks a lot, @ihaveaccount. That did the trick.
Don't forget the quotation marks!
At first, I skipped over this part, as I thought it was talking about re-running the project at this point. gstreamer-1.0/, however, is a sub-dir of library/macosx/. You're supposed to run the xattr -w command in both directories. It might have been my lack of reading comprehension, but I figured I'd share this as there will be many users in need of this solution over the next couple of days. You want to run something like this: Also, be aware that your Processing sketchbook might not be in |
I have tried this twice and the only difference I can see is that I'm using Safari instead of Chrome. Would this make a difference? |
@Stuver, I don't think the source makes a difference. Did you make sure that you used your result from |
Yes. I've done that and manually verified all the packages within the library and still no luck |
I can also confirm it worked, the manual validation of 200+ lib files is wildly frustrating, aside from that @ihaveaccount and @easytarget2000 give solid instructions. |
Hey, it tried it all and it still isn't working for me. But I also got a different result from running |
I also updated to Catalina and struggled with this and only got it working thanks to comments by @codeanticode @ihaveaccount and @vdurnev. However to get it work on my 2018 Macbook Pro 13" needed to change the name of the camera "FaceTime HD Camera" -> "FaceTime HD Camera (Built-in)".
|
Update: Hi guys, I'm new here... very exited :) Help please Here's the code (from examples of opencv library):
|
@romya0010 I think that's because of a bug in beta 4 reported here #130. For the time being, the workaround is to add the camera name to the arguments of the Camera constructor. |
Hello, im new and this is my first day i worked with processing. At this point I can't get forward.
Which console? what do you mean with "cd" And I can't find this file: And I don't understand this: then cd to gstreamer-1.0/ and run command again Please help me, thanks a lot! |
Solution worked for me (macOS Catalina 10.15.1 MacBook Pro Retina 13 inch early 2013 edition). |
Installed beta 4 successfully following @ihaveaccount's directions, on Catalina. Video examples work as long as a name is specified for the camera, but the default camera (no name specified) does not, as others have pointed out. @codeanticode, thanks much for your work on this. FYI, I do camera capture with a BlackMagic interface. For some reason it's never turned up with a name in the "Available Cameras" list, but it does work as the default camera (without specifying a name). So, for now my ability to use it is broken, and I'll be very happy when the previous default camera behavior returns. Thanks again! |
@dantepfer thanks for your update. I had pause the work on the video library while I take care of other projects but the plan is to come back to it as soon as time permits and finalize the v2 release :-) |
Thanks, VendrellPT, some of us followed this step and runs very well, but some of us if we check the mac preferences the permission of camera allows not processing app, but terminal, after we opened the content folder and open procssing by terminal. so each time we open processing and using video library , we have to go inside processing cotent and open it by terminal, how to ssolve this problem ? |
My step-by-step workaround for camera and microphone (requires that you are a member of the Apple Developer program) here: https://gist.github.com/i3games/b063987dfb62baf5d0afda422631b480 |
https://github.com/processing/processing-video/releases I'd tried whit an lower version and work it, i have mac os catalina 10.15.16(updated today) and processing 3.5.4(updated today), using Video Library Release 5 (version 2.0-beta3)([https://github.com/processing/processing-video/releases/tag/r5-v2.0-beta3]), the last Release is the 6 |
|
Thank you so much for this!! I have spent two days to solve this problem. Now it works! |
okay, new update, after installing with the workaround of: #134 (comment) i got the following error:
I really need that fix ;) Can i help in any way? MacOS Catalina 10.15.6 So, i tryed from command line:
|
I followed the steps here which fixed the issue for me (make sure Processing is not running, or quit and restart it after doing these steps): https://discourse.processing.org/t/did-macos-catalina-or-something-break-the-video-library/14699/17 |
Hi all, sorry that this has been broken for so long. The video and sound libraries were moved out of the core because 1) they were very large, and 2) so that others could maintain them. Unfortunately there's nobody doing that maintenance at the moment, so here we are. I've made some additional edits for the next Processing 4 release (alpha 3) that should at least provide the basis for this, so that code will request camera access. We'll have to get a new video release out, however, so that it works without additional messing with folders and Thanks very much to @VendrellPT for the helpful comment on how to get things working in the meantime. |
Thanks for all your work on the Processing codebase Ben! |
Thanks, @johnbcarpenter. Alright folks, @codeanticode was able to make some additional updates to the video library and has posted a new 2.0 release! You can find the release here: https://github.com/processing/processing-video/releases/tag/latest and it should show up as an update in the Contributions Manager sometime soon. Also, be sure to read the following from the release notes:
|
(Didn't mean to close that…) We'll post a 4.0a3 release soon which incorporates the additional changes so that applications prompt for the necessary permissions. Once that's done, we should be all set. In the meantime, you can build Processing 4 from the source and manually install the latest video release if you don't want to wait. |
ETA ? |
No. I do this in my free time. Tricky to set an “ETA” for one's free time. |
Removed two posts from folks who didn't read what's already here, in order to avoid confusion for future visitors. Now locking until the release is out… |
4.0 alpha 3 now posted: https://github.com/processing/processing4/releases/tag/processing-1272-4.0a3 Be sure to update to a 2.x release of the Video library. I have no plans (or more realistically, no time) to update Processing 3.x, so if you want to do video/sound capture work on macOS, this is the release to use. Capture can still be a little slow to start up, and may require more than one attempt on the first try to get the macOS security dialog to show up. Not sure what's going on there, but eager for someone else to help improve it. |
Running the example file that comes with the Processing video library throws the following error:
libc++abi.dylib: terminating with uncaught exception of type NSException Could not run the sketch (Target VM failed to initialize). Make sure that you haven't set the maximum available memory too high. For more information, read revisions.txt and Help → Troubleshooting.
This issue is also reported here:
https://discourse.processing.org/t/did-macos-catalina-or-something-break-the-video-library/14699
There is some speculation in that thread that the library depends on 32bit compiled code which is no longer supported in Mac OS Catalina as Apple is now requiring applications be 64bit.
Resolving this issue is beyond my expertise but it would be awesome if Mac users could continue to use the video library without having to downgrade to older versions of OS X.
The text was updated successfully, but these errors were encountered: