rharder / imagesnap

Capture Images from the Command Line
https://github.com/rharder/imagesnap
457 stars 50 forks source link

Catalina support #27

Open obruchez opened 4 years ago

obruchez commented 4 years ago

I've just upgraded to Catalina.

imagesnap -l returns "No video devices found."

It worked well with Mojave.

alberto-sanchez commented 4 years ago

same here

samwize commented 4 years ago

I got the same issue too. Luckily it is a simple fix. Until PR is merged, my fork here: https://github.com/samwize/imagesnap

koichirose commented 4 years ago

@samwize I'm trying to use your fork on Catalina. I built it successfully, but I can't seem to specify an output file. Running ./imagesnap out.jpg outputs the image in the same directory with the default name snapshot-00000-2019-11-01_19-47-27.206.jpg

Am I missing something?

angelbonet commented 4 years ago

@samwize I'm trying to use your fork on Catalina. I built it successfully, but I can't seem to specify an output file. Running ./imagesnap out.jpg outputs the image in the same directory with the default name snapshot-00000-2019-11-01_19-47-27.206.jpg

Am I missing something?

I'm with this problem also. After update the only path and name for new pictures is: /userHomeFolder/snapshot-00000-2019-11-18_10-07-50.571.jpg I've tryed differents path and simple names but doesn't work.

jakerollo2 commented 4 years ago

Hi! Thanks for fixing imagesnap. I noticed that now, in Catalina, imagesnap -l returns

Video Devices:
<AVCaptureDALDevice: 0x7f854de44a50 [FaceTime HD Camera (Built-in)][0x1420000005ac8600]>
<AVCaptureDALDevice: 0x7f854de4a4a0 [Logitech BRIO][0x14400000046d085e]>

Instead of

Video Devices:
FaceTime HD Camera (Built-in)
Logitech BRIO

Is there any easy way to fix this?

FleXoft commented 4 years ago

I got the same issue too. Luckily it is a simple fix. Until PR is merged, my fork here: https://github.com/samwize/imagesnap

Don't you want also to fix those bugs (device list and file name parameter) what you can see above?

rhuss commented 4 years ago

Any progress on this ? @samwize A downloadable binary would be awesome ! (as I haven't set up the toolchain for macos development yet and also not really deep on macos development)

samwize commented 4 years ago

@rhuss I have a build here https://github.com/samwize/lolcommits/blob/306dd0ebf21464de2d7824cfae841517cd094b1f/vendor/ext/imagesnap/imagesnap

koichirose commented 4 years ago

@samwize is the output file bug fixed in your build?

samwize commented 4 years ago

The fix is actually in the Info.plist. The binary must be alongside with the Info.plist. I wrote about it in https://samwize.com/2019/10/13/info-plist-for-a-macos-command-line-app/

rhuss commented 4 years ago

Thanks a ton ! works for me, also specifying the device from the list as before (e.g. ./imagesnap -d "HD Pro Webcam C920" /tmp/o.jpg). I have no issues with the output path.

The only (minor) glitch that the list still contains unnecessary boilerplate like in

./imagesnap -l
Video Devices:
<AVCaptureDALDevice: 0x7fd7d4c69480 [HD Pro Webcam C920][0x14331000046d082d]>
<AVCaptureDALDevice: 0x7fd7d4f17630 [FaceTime HD Camera (Built-in)][0x8020000005ac8514]>

but I can live with this.

Thanks again !

rharder commented 3 years ago

I'm curious if this is still an issue for people. I have a Mojave system and a Big Sur system -- brackets Catalina. I'll probably never have a Catalina computer at this point, so I'm not sure if there's anything I can do.

FleXoft commented 3 years ago

It seems to be Ok on:

$ sw_vers ProductName: Mac OS X ProductVersion: 10.15.7 BuildVersion: 19H1217